Re: [PATCH] kbuild: Add -Werror=unknown-warning-option to CLANG_FLAGS

2019-06-20 Thread Masahiro Yamada
On Wed, Jun 12, 2019 at 3:43 AM Nathan Chancellor wrote: > > In commit ebcc5928c5d9 ("arm64: Silence gcc warnings about arch ABI > drift"), the arm64 Makefile added -Wno-psabi to KBUILD_CFLAGS, which is > a GCC only option so clang rightfully complains: > > warning: unknown warning option '-Wno-ps

Re: [PATCH] kbuild: Add -Werror=unknown-warning-option to CLANG_FLAGS

2019-06-11 Thread Nick Desaulniers
On Tue, Jun 11, 2019 at 11:43 AM Nathan Chancellor wrote: > Suggested-by: Peter Smith > Signed-off-by: Nathan Chancellor I verified this has no negative effect with -Qunused-arguments and the relative position of the two flags. The build failure is much more explicit with this patch: > error:

[PATCH] kbuild: Add -Werror=unknown-warning-option to CLANG_FLAGS

2019-06-11 Thread Nathan Chancellor
In commit ebcc5928c5d9 ("arm64: Silence gcc warnings about arch ABI drift"), the arm64 Makefile added -Wno-psabi to KBUILD_CFLAGS, which is a GCC only option so clang rightfully complains: warning: unknown warning option '-Wno-psabi' [-Wunknown-warning-option] https://clang.llvm.org/docs/Diagnost