Mercurial > hg > toybox
comparison lib/portability.h @ 372:9051cb744d0a
Shut up even MORE gcc/glibc spurious warnings.
author | Rob Landley <rob@landley.net> |
---|---|
date | Wed, 06 Jan 2010 05:28:32 -0600 |
parents | 5f1d3ad8a888 |
children | 31215cc6c9f2 |
comparison
equal
deleted
inserted
replaced
371:2cec41ee6eea | 372:9051cb744d0a |
---|---|
1 // The tendency of gcc to produce stupid warnings continues with | |
2 // warn_unsed_result, which warns about things like ignoring the return code | |
3 // of nice(2) (which is completely useless since -1 is a legitimate return | |
4 // value on success and even the man page tells you to use errno instead). | |
5 | |
6 // This makes it stop. | |
7 | |
8 #undef _FORTIFY_SOURCE | |
9 | |
1 // Humor glibc to get dprintf, then #define it to something more portable. | 10 // Humor glibc to get dprintf, then #define it to something more portable. |
2 #define _GNU_SOURCE | 11 #define _GNU_SOURCE |
3 #include <stdio.h> | 12 #include <stdio.h> |
4 #define fdprintf(...) dprintf(__VA_ARGS__) | 13 #define fdprintf(...) dprintf(__VA_ARGS__) |
5 | 14 |