From 01b9c1d1b0e673bf6444e4a0a01b8126fef9ce68 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Fri, 9 Nov 2018 09:47:47 +0100 Subject: Make: Add -Wmissing-prototypes -Wmissing-prototypes is a useful warning, so add it to the build. With this we can detect conflicting function prototypes. When a file implements a function but doesn't include the header file which provides the prototype for it then conflicting prototypes would go unnoticed without this warning. MIPS already had that warning, so we can remove it from the MIPS Makefile. Signed-off-by: Sascha Hauer --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 10e1b74a6d..21f39c03ba 100644 --- a/Makefile +++ b/Makefile @@ -307,7 +307,7 @@ CPPFLAGS := -D__KERNEL__ -D__BAREBOX__ $(LINUXINCLUDE) -fno-builtin -ffre CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ -Werror-implicit-function-declaration \ - -fno-strict-aliasing -fno-common -Os -pipe + -fno-strict-aliasing -fno-common -Os -pipe -Wmissing-prototypes AFLAGS := -D__ASSEMBLY__ LDFLAGS_barebox := -Map barebox.map -- cgit v1.2.3