# HG changeset patch # User Rob Landley # Date 1262777312 21600 # Node ID 9051cb744d0ae9dc502a795c123b349f7d397dac # Parent 2cec41ee6eeaeb8ce7e87884961e2950b3ea65a0 Shut up even MORE gcc/glibc spurious warnings. diff -r 2cec41ee6eea -r 9051cb744d0a lib/portability.h --- 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