diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2018-11-09 09:47:47 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-11-19 09:45:24 +0100 |
commit | 01b9c1d1b0e673bf6444e4a0a01b8126fef9ce68 (patch) | |
tree | 7f9bdd0799c24711065a04012720ace7b422f513 /arch/mips/Makefile | |
parent | cac6573ddf5865fae25a256d9066699a0fd8b364 (diff) | |
download | barebox-01b9c1d1b0e673bf6444e4a0a01b8126fef9ce68.tar.gz barebox-01b9c1d1b0e673bf6444e4a0a01b8126fef9ce68.tar.xz |
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 'arch/mips/Makefile')
-rw-r--r-- | arch/mips/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/Makefile b/arch/mips/Makefile index 3342e0eafd..6338dc174d 100644 --- a/arch/mips/Makefile +++ b/arch/mips/Makefile @@ -12,7 +12,7 @@ endif CPPFLAGS += -D__MIPS__ -fno-strict-aliasing -fno-merge-constants cflags-y += -G 0 -mno-abicalls -fno-pic -pipe -cflags-y += -Wall -Wmissing-prototypes -Wstrict-prototypes \ +cflags-y += -Wall -Wstrict-prototypes \ -Wno-uninitialized -Wno-format -Wno-main ifdef CONFIG_32BIT |