aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/lib.c
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2017-02-18 22:14:03 +0100
committerChristopher Li <sparse@chrisli.org>2017-03-04 00:45:38 +0800
commit0dfda0d1f0fe672c5aabdaf67665ec9b5aeaa4ac (patch)
tree017e6e4933f25653d7762e3f1af3a7e6a7bea209 /lib.c
parentdf57533b37f0dc37b3e57f4647e3b7db423b5a61 (diff)
downloadsparse-dev-0dfda0d1f0fe672c5aabdaf67665ec9b5aeaa4ac.tar.gz
make -Wbitwise operational again
The flag -Wbitwise have no effect since patch 02a886bfa ("Introduce keyword driven attribute parsing"): the corresponding checks are now always done. Fix that by reintroducing it in the same way as it was: ignore the bitwise attribute if the flag is not set. It's less invasive that checking the flag at each place an corresponding warning is emitted. Also, to not perturb the current situation the flag is now enabled by default. Reported-by: Edward Cree <ecree@solarflare.com> Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com> Signed-off-by: Christopher Li <sparse@chrisli.org>
Diffstat (limited to 'lib.c')
-rw-r--r--lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib.c b/lib.c
index d4732524..cce027c9 100644
--- a/lib.c
+++ b/lib.c
@@ -216,7 +216,7 @@ static struct token *pre_buffer_begin = NULL;
static struct token *pre_buffer_end = NULL;
int Waddress_space = 1;
-int Wbitwise = 0;
+int Wbitwise = 1;
int Wcast_to_as = 0;
int Wcast_truncate = 1;
int Wcontext = 1;