diff options
Diffstat (limited to 'include/c.h')
-rw-r--r-- | include/c.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/c.h b/include/c.h index a50e8a593..4a9bf3d42 100644 --- a/include/c.h +++ b/include/c.h @@ -56,7 +56,7 @@ */ #ifndef __ul_alloc_size # if __GNUC_PREREQ (4, 3) -# define __ul_alloc_size(s) __attribute__((alloc_size(s))) +# define __ul_alloc_size(s) __attribute__((alloc_size(s), warn_unused_result)) # else # define __ul_alloc_size(s) # endif @@ -64,7 +64,7 @@ #ifndef __ul_calloc_size # if __GNUC_PREREQ (4, 3) -# define __ul_calloc_size(n, s) __attribute__((alloc_size(n, s))) +# define __ul_calloc_size(n, s) __attribute__((alloc_size(n, s), warn_unused_result)) # else # define __ul_calloc_size(n, s) # endif |