make -Wbitwise operational again
commit0dfda0d1f0fe672c5aabdaf67665ec9b5aeaa4ac
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
Sat, 18 Feb 2017 21:14:03 +0000 (18 22:14 +0100)
committerChristopher Li <sparse@chrisli.org>
Fri, 3 Mar 2017 16:45:38 +0000 (4 00:45 +0800)
tree017e6e4933f25653d7762e3f1af3a7e6a7bea209
parentdf57533b37f0dc37b3e57f4647e3b7db423b5a61
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>
lib.c
parse.c