aboutsummaryrefslogtreecommitdiff
path: root/lib/portability.h
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2014-11-22 00:36:45 -0600
committerRob Landley <rob@landley.net>2014-11-22 00:36:45 -0600
commitf6c28b6e0017ac36190ee31132721a1c9e30f2b6 (patch)
treec242e6d66c112c46ec1a0010758ff00df29f2e87 /lib/portability.h
parentea6fc27fc8853b317a78c402e290bdc0142792e8 (diff)
downloadtoybox-f6c28b6e0017ac36190ee31132721a1c9e30f2b6.tar.gz
As long as Android's going to require fortify, fixup the warnings it generates.
Diffstat (limited to 'lib/portability.h')
-rw-r--r--lib/portability.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/portability.h b/lib/portability.h
index 2f2421d8..d58e5928 100644
--- a/lib/portability.h
+++ b/lib/portability.h
@@ -4,18 +4,6 @@
// in specific compiler, library, or OS versions, localize all that here
// and in portability.c
-// The tendency of gcc to produce stupid warnings continues with
-// warn_unused_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.
-
-// Except on Android, where fortify is mandatory.
-#if !defined(__ANDROID__)
-#undef _FORTIFY_SOURCE
-#endif
-
// For musl
#define _ALL_SOURCE