From: Brad Hubbard Date: Tue, 11 Apr 2017 01:27:01 +0000 (+1000) Subject: blkdev: Suppress cppcheck error X-Git-Tag: v12.0.2~99^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=36a8a869c6e5bd9bf99f3eebc0f8ebf5ca944cdf;p=ceph.git blkdev: Suppress cppcheck error Signed-off-by: Brad Hubbard --- diff --git a/src/common/blkdev.cc b/src/common/blkdev.cc index 4b1f6998a749..361a7738bd45 100644 --- a/src/common/blkdev.cc +++ b/src/common/blkdev.cc @@ -46,6 +46,7 @@ int get_block_device_size(int fd, int64_t *psize) int ret = ::ioctl(fd, BLKGETSIZE, §ors); *psize = sectors * 512ULL; #else +// cppcheck-suppress preprocessorErrorDirective # error "Linux configuration error (get_block_device_size)" #endif if (ret < 0)