From f6c28b6e0017ac36190ee31132721a1c9e30f2b6 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 22 Nov 2014 00:36:45 -0600 Subject: As long as Android's going to require fortify, fixup the warnings it generates. --- lib/portability.h | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'lib/portability.h') 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 -- cgit v1.2.3