From: Jens Axboe Date: Fri, 7 Oct 2011 11:26:27 +0000 (+0200) Subject: Fix warning when clang is used as the compiler X-Git-Tag: fio-1.99.3~2 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=1f4c0a4f558557d45e6b186033577ec0b16872e5 Fix warning when clang is used as the compiler Signed-off-by: Jens Axboe --- 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) {