diff options
| author | Sodagudi Prasad <[email protected]> | 2018-02-06 23:46:51 +0000 |
|---|---|---|
| committer | Masahiro Yamada <[email protected]> | 2018-02-07 00:20:19 +0000 |
| commit | 0a5f41767444cc3b4fc5573921ab914b4f78baaa (patch) | |
| tree | 626bf979c52f950d3ca284c4980fa1197f89f780 /drivers/fpga/fpga-mgr.c | |
| parent | kconfig: Warn if help text is blank (diff) | |
| download | kernel-0a5f41767444cc3b4fc5573921ab914b4f78baaa.tar.gz kernel-0a5f41767444cc3b4fc5573921ab914b4f78baaa.zip | |
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 <[email protected]>
Signed-off-by: Masahiro Yamada <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions
