From: Bart Van Assche Date: Wed, 24 Aug 2022 21:54:39 +0000 (-0700) Subject: Remove two casts from os-linux.h X-Git-Tag: fio-3.33~57^2~3 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=6e0cefdcad82d030eab1cff08fc9a34dc0375223;p=fio.git Remove two casts from os-linux.h This patch prepares for merging the os-linux.h and os-android.h header files. While CPU_CLR() and CPU_SET() are defined as statement expressions in the Linux header files, these macros have been defined as statements in the Android header files. Remove the '(void)' casts to prevent the introduction of a build error when merging the Linux and Android header files. Signed-off-by: Bart Van Assche --- diff --git a/os/os-linux.h b/os/os-linux.h index 3001140c..4a05a775 100644 --- a/os/os-linux.h +++ b/os/os-linux.h @@ -81,8 +81,8 @@ typedef cpu_set_t os_cpu_mask_t; pthread_getaffinity_np(pthread_self(), sizeof(mask), &(mask)) #endif -#define fio_cpu_clear(mask, cpu) (void) CPU_CLR((cpu), (mask)) -#define fio_cpu_set(mask, cpu) (void) CPU_SET((cpu), (mask)) +#define fio_cpu_clear(mask, cpu) CPU_CLR((cpu), (mask)) +#define fio_cpu_set(mask, cpu) CPU_SET((cpu), (mask)) #define fio_cpu_isset(mask, cpu) (CPU_ISSET((cpu), (mask)) != 0) #define fio_cpu_count(mask) CPU_COUNT((mask))