]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix compile warning 10014/head
authorWanlong Gao <wanlong.gao@easystack.cn>
Wed, 29 Jun 2016 10:15:58 +0000 (18:15 +0800)
committerWanlong Gao <wanlong.gao@easystack.cn>
Wed, 29 Jun 2016 11:16:41 +0000 (19:16 +0800)
commit5f8c2bbd40e9e2f327e3ee5d0a21a227f3a76d04
tree5c9f151160535e29311ce24ae3c9af725356caac
parentf3ce402fa4556063406a4b5dc58432967721dd2a
rgw: fix compile warning

/git/ceph/src/rgw/rgw_rest_swift.cc: In member function ‘virtual void RGWListBucket_ObjStore_SWIFT::send_response()’:
/git/ceph/src/rgw/rgw_rest_swift.cc:319:7: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
       if (name.compare(delimiter) == 0)
       ^~
/git/ceph/src/rgw/rgw_rest_swift.cc:322:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’
         s->formatter->open_object_section_with_attrs("subdir", FormatterAttrs("name", name.c_str(), NULL));
         ^

Signed-off-by: Wanlong Gao <wanlong.gao@easystack.cn>
src/rgw/rgw_rest_swift.cc