diff options
Diffstat (limited to 'lib/portability.h')
-rw-r--r-- | lib/portability.h | 9 |
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> |