diff options
author | Karel Zak | 2013-07-09 10:44:06 +0200 |
---|---|---|
committer | Karel Zak | 2013-07-09 10:44:06 +0200 |
commit | c9678832b15065f9a0147c308ed79d00f8d4237a (patch) | |
tree | 5a6162e5609dcc5c4be20c774ffe8dfe0eb96737 /include/c.h | |
parent | lsblk: use devno to check if the filesystem is mounted (diff) | |
download | kernel-qcow2-util-linux-c9678832b15065f9a0147c308ed79d00f8d4237a.tar.gz kernel-qcow2-util-linux-c9678832b15065f9a0147c308ed79d00f8d4237a.tar.xz kernel-qcow2-util-linux-c9678832b15065f9a0147c308ed79d00f8d4237a.zip |
include/xalloc: add warn_unused_result to allocation functions
Signed-off-by: Karel Zak <kzak@redhat.com>
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 |