summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2018-11-09 09:47:47 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2018-11-19 09:45:24 +0100
commit01b9c1d1b0e673bf6444e4a0a01b8126fef9ce68 (patch)
tree7f9bdd0799c24711065a04012720ace7b422f513 /Makefile
parentcac6573ddf5865fae25a256d9066699a0fd8b364 (diff)
downloadbarebox-01b9c1d1b0e673bf6444e4a0a01b8126fef9ce68.tar.gz
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 <s.hauer@pengutronix.de>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 10e1b74..21f39c0 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