summaryrefslogtreecommitdiff
path: root/scripts/coccinelle/free/devm_free.cocci
diff options
context:
space:
mode:
authorSodagudi Prasad <psodagud@codeaurora.org>2018-02-06 15:46:51 -0800
committerMasahiro Yamada <yamada.masahiro@socionext.com>2018-02-07 09:20:19 +0900
commit0a5f41767444cc3b4fc5573921ab914b4f78baaa (patch)
tree626bf979c52f950d3ca284c4980fa1197f89f780 /scripts/coccinelle/free/devm_free.cocci
parent1b9eda2e4892cb373c7d4cf23439f357c8739e27 (diff)
kbuild: clang: disable unused variable warnings only when constant
Currently, GCC disables -Wunused-const-variable, but not -Wunused-variable, so warns unused variables if they are non-constant. While, Clang does not warn unused variables at all regardless of the const qualifier because -Wno-unused-const-variable is implied by the stronger option -Wno-unused-variable. Disable -Wunused-const-variable instead of -Wunused-variable so that GCC and Clang work in the same way. Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'scripts/coccinelle/free/devm_free.cocci')
0 files changed, 0 insertions, 0 deletions