diff options
author | Ulrich Drepper <drepper@redhat.com> | 2005-01-06 21:01:25 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2005-01-06 21:01:25 +0000 |
commit | 5cf53cc2083e0bc77d6d7301fff8c31038a410a2 (patch) | |
tree | 1d59ed6fc2eb95bfd1946b79e5b4761978afe5b4 /misc | |
parent | bb803bff5cb97b3de94896aba1c4ec0d67227524 (diff) | |
download | glibc-5cf53cc2083e0bc77d6d7301fff8c31038a410a2.tar.gz glibc-5cf53cc2083e0bc77d6d7301fff8c31038a410a2.tar.xz glibc-5cf53cc2083e0bc77d6d7301fff8c31038a410a2.zip |
Update.
2005-01-06 Ulrich Drepper <drepper@redhat.com> * misc/sys/cdefs.h: Define __wur. * libio/stdio.h: Use __wur for a number of interfaces. * posix/unistd.h: Likewise. * posix/regex_internal.c (free_state): Free word_trtable.
Diffstat (limited to 'misc')
-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 |