diff options
Diffstat (limited to 'include/c.h')
-rw-r--r-- | include/c.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/c.h b/include/c.h index 4bb288758..e52514345 100644 --- a/include/c.h +++ b/include/c.h @@ -25,7 +25,9 @@ # define __must_be_array(a) \ BUILD_BUG_ON_ZERO(__builtin_types_compatible_p(typeof(a), typeof(&a[0]))) -# define ignore_result(x) ({ typeof(x) __dummy = (x); (void) __dummy; }) +# define ignore_result(x) ({ \ + typeof(x) __dummy __attribute__((__unused__)) = (x); (void) __dummy; \ +}) #else /* !__GNUC__ */ # define __must_be_array(a) 0 |