aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2010-01-06 05:28:32 -0600
committerRob Landley <rob@landley.net>2010-01-06 05:28:32 -0600
commit7051a963b0f646f0b489dba892d85e4816d95d79 (patch)
tree04cb74c2e985f7a20be11ec1a146d0b921ded669 /lib
parent50239709f6cb0f2c928feb2fc9cc7bf516ecd75c (diff)
downloadtoybox-7051a963b0f646f0b489dba892d85e4816d95d79.tar.gz
Shut up even MORE gcc/glibc spurious warnings.
Diffstat (limited to 'lib')
-rw-r--r--lib/portability.h9
1 files changed, 9 insertions, 0 deletions
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 <stdio.h>