comparison lib/portability.h @ 94:884c03c29f21

Teach build to build only the toys/*.c selected in .config, and teach CFG_TOYSH_DEBUG to shut up the spurious "gcc can't tell that this is never actually used uninitialized because gcc is stupid" warnings.
author Rob Landley <rob@landley.net>
date Sat, 03 Feb 2007 14:10:00 -0500
parents 69efffcacd70
children c3d1d74d5d8f
comparison
equal deleted inserted replaced
93:cc0a6789f92a 94:884c03c29f21
23 #define SWAP_BE64(x) bswap_64(x) 23 #define SWAP_BE64(x) bswap_64(x)
24 #define SWAP_LE16(x) (x) 24 #define SWAP_LE16(x) (x)
25 #define SWAP_LE32(x) (x) 25 #define SWAP_LE32(x) (x)
26 #define SWAP_LE64(x) (x) 26 #define SWAP_LE64(x) (x)
27 #endif 27 #endif
28
29 // Some versions of gcc produce spurious "may be uninitialized" warnings in
30 // cases where it provably can't happen. Unfortunately, although this warning
31 // is calculated and produced separately from the "is definitely used
32 // uninitialized" warnings, there's no way to turn off the broken spurious "may
33 // be" warnings without also turning off the non-broken "is" warnings.
34
35 #if CFG_TOYBOX_DEBUG
36 #define GCC_BUG =0
37 #else
38 #define GCC_BUG
39 #endif