[PATCH] Makefile: enable Werror=implicit-function-declaration

Sascha Hauer s.hauer at pengutronix.de
Mon Sep 15 23:08:34 PDT 2014


On Mon, Sep 15, 2014 at 11:51:35PM +0200, Lucas Stach wrote:
> This should prevent us from ever again missing an
> failure similar to that one fixed in ee3254569dab
> (EFI: add missing include) by throwing a build error.
> 
> Signed-off-by: Lucas Stach <dev at lynxeye.de>

Nice. I wonder why I never did that earlier. Applied, thanks

Sascha

> ---
>  Makefile | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/Makefile b/Makefile
> index b059c3a00eaa..90b2b6368554 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -300,6 +300,7 @@ LINUXINCLUDE    := -Iinclude -I$(srctree)/dts/include \
>  CPPFLAGS        := -D__KERNEL__ -D__BAREBOX__ $(LINUXINCLUDE) -fno-builtin -ffreestanding
>  
>  CFLAGS          := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
> +                   -Werror=implicit-function-declaration \
>                     -fno-strict-aliasing -fno-common -Os -pipe
>  AFLAGS          := -D__ASSEMBLY__
>  
> -- 
> 1.9.3
> 
> 
> _______________________________________________
> barebox mailing list
> barebox at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
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 |



More information about the barebox mailing list