Fix warning when clang is used as the compiler
authorJens Axboe <axboe@kernel.dk>
Fri, 7 Oct 2011 11:26:27 +0000 (13:26 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 7 Oct 2011 11:26:27 +0000 (13:26 +0200)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
os/os-linux.h

index 828b208136a393df16ed6d33c3da188da2025580..9f547fffe635ad0f652b1baa6a579032bdacc801 100644 (file)
@@ -92,8 +92,8 @@ typedef struct drand48_data os_random_state_t;
        sched_getaffinity((pid), (ptr))
 #endif
 
        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)
 {
 
 static inline int fio_cpuset_init(os_cpu_mask_t *mask)
 {