From 1f4c0a4f558557d45e6b186033577ec0b16872e5 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Fri, 7 Oct 2011 13:26:27 +0200 Subject: [PATCH] Fix warning when clang is used as the compiler Signed-off-by: Jens Axboe --- os/os-linux.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/os/os-linux.h b/os/os-linux.h index 828b2081..9f547fff 100644 --- a/os/os-linux.h +++ b/os/os-linux.h @@ -92,8 +92,8 @@ typedef struct drand48_data os_random_state_t; sched_getaffinity((pid), (ptr)) #endif -#define fio_cpu_clear(mask, cpu) CPU_CLR((cpu), (mask)) -#define fio_cpu_set(mask, cpu) CPU_SET((cpu), (mask)) +#define fio_cpu_clear(mask, cpu) (void) CPU_CLR((cpu), (mask)) +#define fio_cpu_set(mask, cpu) (void) CPU_SET((cpu), (mask)) static inline int fio_cpuset_init(os_cpu_mask_t *mask) { -- 2.25.1