aboutsummaryrefslogtreecommitdiff
path: root/lib.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@g5.osdl.org>2006-10-01 10:01:03 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2006-10-01 10:01:03 -0700
commitabbdcdd9060ce6222a0f65c363ccc93b4e973aa7 (patch)
tree40814fbe33f0c867535b3c387e30a976b44ebe03 /lib.h
parent[PATCH] add support for __builtin_choose_expr() (diff)
downloadsparse-abbdcdd9060ce6222a0f65c363ccc93b4e973aa7.tar.gz
sparse-abbdcdd9060ce6222a0f65c363ccc93b4e973aa7.tar.bz2
sparse-abbdcdd9060ce6222a0f65c363ccc93b4e973aa7.zip
Add warning message for naked do-while
Does it necessarily make sense? Dunno, but it does tend to be bad practice, or at least result in code that can be hard to mentally parse. Maybe that mental parsing is just me. Or maybe it should be warned about. You decide. 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 207a8ec..5228297 100644
--- a/lib.h
+++ b/lib.h
@@ -84,6 +84,7 @@ extern int Wdecl;
extern int Wone_bit_signed_bitfield;
extern int Wshadow;
extern int Wcast_truncate;
+extern int Wdo_while;
extern void declare_builtin_functions(void);
extern void create_builtin_stream(void);