Re: [PATCH] kbuild, LLVMLinux: Add -Werror to cc-option to support clang

From: Masahiro Yamada
Date: Tue Apr 11 2017 - 15:39:13 EST


2017-04-01 5:38 GMT+09:00 Arnd Bergmann <arnd@xxxxxxxx>:
> From: Mark Charlebois <charlebm@xxxxxxxxx>
>
> Clang will warn about unknown warnings but will not return false
> unless -Werror is set. GCC will return false if an unknown
> warning is passed.
>
> Adding -Werror make both compiler behave the same.
>
> [arnd: it turns out we need the same patch for testing whether -ffunction-sections
> works right with gcc. I've build tested extensively with this patch
> applied, so let's just merge this one now.]
>
> Signed-off-by: Mark Charlebois <charlebm@xxxxxxxxx>
> Signed-off-by: Behan Webster <behanw@xxxxxxxxxxxxxxxxxx>
> Reviewed-by: Jan-Simon MÃller <dl9pf@xxxxxx>
> Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>

Applied to linux-kbuild/kbuild.
Thanks!




--
Best Regards
Masahiro Yamada