]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
blkdev: Suppress cppcheck error
authorBrad Hubbard <bhubbard@redhat.com>
Tue, 11 Apr 2017 01:27:01 +0000 (11:27 +1000)
committerBrad Hubbard <bhubbard@redhat.com>
Tue, 11 Apr 2017 01:59:21 +0000 (11:59 +1000)
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
src/common/blkdev.cc

index 4b1f6998a7490724af5cd849c3745bc2d1aa3490..361a7738bd452ccf73e5679707bcfab98dd26c3f 100644 (file)
@@ -46,6 +46,7 @@ int get_block_device_size(int fd, int64_t *psize)
   int ret = ::ioctl(fd, BLKGETSIZE, &sectors);
   *psize = sectors * 512ULL;
 #else
+// cppcheck-suppress preprocessorErrorDirective
 # error "Linux configuration error (get_block_device_size)"
 #endif
   if (ret < 0)