On Fri, Sep 27, 2019 at 08:05:36AM +0200, Ahmad Fatoum wrote: > 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> > Acked-by: Kees Cook <keescook@xxxxxxxxxxxx> > Signed-off-by: Masahiro Yamada <yamada.masahiro@xxxxxxxxxxxxx> > [afa: ported to barebox from upstream c3f0d0bc5b01ad9] > Signed-off-by: Ahmad Fatoum <ahmad@xxxxxx> > --- > scripts/Kbuild.include | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) Applied, thanks Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox