From 36a8a869c6e5bd9bf99f3eebc0f8ebf5ca944cdf Mon Sep 17 00:00:00 2001 From: Brad Hubbard Date: Tue, 11 Apr 2017 11:27:01 +1000 Subject: [PATCH] blkdev: Suppress cppcheck error Signed-off-by: Brad Hubbard --- src/common/blkdev.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/blkdev.cc b/src/common/blkdev.cc index 4b1f6998a7490..361a7738bd452 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) -- 2.39.5