diff options
author | Josh Triplett <josht@us.ibm.com> | 2006-08-29 18:17:31 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-08-29 19:11:52 -0700 |
commit | c974e38bfdf1484f39b473577f1dd047706384e4 (patch) | |
tree | c49df7dcd48afe31dc867c853bfa29d8ab8619d0 /lib.h | |
parent | [PATCH] Add -Wno-enum-mismatch (diff) | |
download | sparse-c974e38bfdf1484f39b473577f1dd047706384e4.tar.gz sparse-c974e38bfdf1484f39b473577f1dd047706384e4.tar.bz2 sparse-c974e38bfdf1484f39b473577f1dd047706384e4.zip |
[PATCH] Add -Wno-cast-truncate
Add the ability to turn off checks for casts that truncate constant values
using -Wno-cast-truncate, helpful when attempting to track down a particular
class of warnings only without losing them amongst others. Checks for
truncating casts default to on, so this does not change the default behavior
of sparse.
Signed-off-by: Josh Triplett <josh@freedesktop.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'lib.h')
-rw-r--r-- | lib.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -83,6 +83,7 @@ extern int Wenum_mismatch; extern int Wdecl; extern int Wone_bit_signed_bitfield; extern int Wshadow; +extern int Wcast_truncate; extern void declare_builtin_functions(void); extern void create_builtin_stream(void); |