]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
test: add explicit braces to avoid ambiguous ‘else’ and to silence warnings
authorJos Collin <jcollin@redhat.com>
Wed, 12 Apr 2017 09:18:43 +0000 (14:48 +0530)
committerJos Collin <jcollin@redhat.com>
Wed, 12 Apr 2017 11:57:27 +0000 (17:27 +0530)
commit12df9a3a18c23fc32c34d7998c898d3386e73e79
treec0253f6e84ce85ae5e04707a825b0377f9b400f8
parentb43c180189abfd82282650925fc680519abc8cfb
test: add explicit braces to avoid ambiguous ‘else’ and to silence warnings

The following warning appears during make for several files in the test submodule:
warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wdangling-else]

Fixed the review comment too.

Signed-off-by: Jos Collin <jcollin@redhat.com>
src/test/bufferlist.cc
src/test/cls_lock/test_cls_lock.cc
src/test/crush/crush.cc
src/test/libcephfs/test.cc
src/test/librados/c_read_operations.cc
src/test/os/TestLFNIndex.cc
src/test/osd/TestOSDMap.cc