diff options
| author | Sodagudi Prasad <psodagud@codeaurora.org> | 2018-02-06 15:46:51 -0800 |
|---|---|---|
| committer | Nathan Chancellor <natechancellor@gmail.com> | 2018-04-18 01:19:27 -0700 |
| commit | 88935a3cc6e5a27f591b0121f009f06dce339143 (patch) | |
| tree | b8f01422d63b8b8822442eefc0d87b5a9df541f1 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
| parent | 52352c72ffa373a0ca3e2bf5ea734458e6dcca0e (diff) | |
UPSTREAM: 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>
(cherry picked from commit 0a5f41767444cc3b4fc5573921ab914b4f78baaa)
CQ-DEPEND=CL:1015403
BUG=none
TEST=build with unused variables + clang; see -Werror catch it
Change-Id: I82c76d13354e8f2d8e7e09e87d9fdff01902248f
Signed-off-by: Brian Norris <briannorris@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1015415
Reviewed-by: Guenter Roeck <groeck@chromium.org>
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions
