aboutsummaryrefslogtreecommitdiff
path: root/lib.h
diff options
context:
space:
mode:
authorJosh Triplett <josht@us.ibm.com>2006-08-29 18:17:31 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2006-08-29 19:11:52 -0700
commitc974e38bfdf1484f39b473577f1dd047706384e4 (patch)
treec49df7dcd48afe31dc867c853bfa29d8ab8619d0 /lib.h
parent[PATCH] Add -Wno-enum-mismatch (diff)
downloadsparse-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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib.h b/lib.h
index 0b45c67..207a8ec 100644
--- a/lib.h
+++ b/lib.h
@@ -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);