diff options
author | Jakub Jelinek <jakub@redhat.com> | 2005-01-06 22:18:46 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2005-01-06 22:18:46 +0000 |
commit | e7cbcee4982d8caa809a91c9cfef5fda67445f0a (patch) | |
tree | f3bd1fe9ebe4f9bc6e776d531cd1d8852a7b5bae /misc/sys/cdefs.h | |
parent | f19db0eaff4a01856f67d58e2a07dbf63f8d132f (diff) | |
download | glibc-e7cbcee4982d8caa809a91c9cfef5fda67445f0a.tar.gz glibc-e7cbcee4982d8caa809a91c9cfef5fda67445f0a.tar.xz glibc-e7cbcee4982d8caa809a91c9cfef5fda67445f0a.zip |
Updated to fedora-glibc-20050106T2203 cvs/fedora-glibc-2_3_4-5
Diffstat (limited to 'misc/sys/cdefs.h')
-rw-r--r-- | misc/sys/cdefs.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/misc/sys/cdefs.h b/misc/sys/cdefs.h index 475cf62961..6ac21013cc 100644 --- a/misc/sys/cdefs.h +++ b/misc/sys/cdefs.h @@ -255,6 +255,14 @@ # define __nonnull(params) #endif +/* If fortification mode, we warn about unused results of certain + function calls which can lead to problems. */ +#if __GNUC_PREREQ (3,4) && __USE_FORTIFY_LEVEL > 0 +# define __wur __attribute__ ((__warn_unused_result__)) +#else +# define __wur /* Ignore */ +#endif + /* It is possible to compile containing GCC extensions even if GCC is run in pedantic mode if the uses are carefully marked using the `__extension__' keyword. But this is not generally available before |