Mercurial > hg > toybox
changeset 372:9051cb744d0a
Shut up even MORE gcc/glibc spurious warnings.
author | Rob Landley <rob@landley.net> |
---|---|
date | Wed, 06 Jan 2010 05:28:32 -0600 |
parents | 2cec41ee6eea |
children | 5e68c7cab1a4 |
files | lib/portability.h |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/portability.h Tue Jan 05 13:17:47 2010 -0600 +++ b/lib/portability.h Wed Jan 06 05:28:32 2010 -0600 @@ -1,3 +1,12 @@ +// The tendency of gcc to produce stupid warnings continues with +// warn_unsed_result, which warns about things like ignoring the return code +// of nice(2) (which is completely useless since -1 is a legitimate return +// value on success and even the man page tells you to use errno instead). + +// This makes it stop. + +#undef _FORTIFY_SOURCE + // Humor glibc to get dprintf, then #define it to something more portable. #define _GNU_SOURCE #include <stdio.h>