diff options
author | 2007-06-20 19:05:13 -0400 | |
---|---|---|
committer | 2007-06-25 15:51:43 -0400 | |
commit | f78588abcebac0462764e5c8a3c91fa7a13bad45 (patch) | |
tree | ad9a707cf2ac3e5ac730b33887361ff842f97919 /lib.c | |
parent | [PATCH] in case of compound literal we want to delay examining type (diff) | |
download | sparse-f78588abcebac0462764e5c8a3c91fa7a13bad45.tar.gz sparse-f78588abcebac0462764e5c8a3c91fa7a13bad45.tar.bz2 sparse-f78588abcebac0462764e5c8a3c91fa7a13bad45.zip |
[PATCH] warn on return <void expression>;
conditional on -Wreturn-void
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'lib.c')
-rw-r--r-- | lib.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -207,6 +207,7 @@ int Wuninitialized = 1; int Wold_initializer = 1; int Wnon_pointer_null = 1; int Wparen_string = 0; +int Wreturn_void = 0; int dbg_entry = 0; int dbg_dead = 0; @@ -359,6 +360,7 @@ static const struct warning { { "old-initializer", &Wold_initializer }, { "non-pointer-null", &Wnon_pointer_null }, { "paren-string", &Wparen_string }, + { "return-void", &Wreturn_void }, }; enum { |