From 7051a963b0f646f0b489dba892d85e4816d95d79 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Wed, 6 Jan 2010 05:28:32 -0600 Subject: Shut up even MORE gcc/glibc spurious warnings. --- lib/portability.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lib/portability.h') diff --git a/lib/portability.h b/lib/portability.h index 34f7994f..d4edfb6d 100644 --- a/lib/portability.h +++ b/lib/portability.h @@ -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 -- cgit v1.2.3