mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH v1] Makefile: move -Wmissing-prototypes from mips to main Makefile
@ 2018-10-17 14:08 Oleksij Rempel
  2018-10-19 12:00 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Oleksij Rempel @ 2018-10-17 14:08 UTC (permalink / raw)
  To: barebox; +Cc: Oleksij Rempel

Currently we get -Wmissing-prototypes warning only on arch/mips.
With this patch we should be able to see this warning on all supported
architectures.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
---
 Makefile           | 2 +-
 arch/mips/Makefile | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 70d501ba5e..fa2020a07d 100644
--- a/Makefile
+++ b/Makefile
@@ -306,7 +306,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 \
+                   -Werror-implicit-function-declaration -Wmissing-prototypes \
                    -fno-strict-aliasing -fno-common -Os -pipe
 AFLAGS          := -D__ASSEMBLY__
 
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
-- 
2.19.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH v1] Makefile: move -Wmissing-prototypes from mips to main Makefile
  2018-10-17 14:08 [PATCH v1] Makefile: move -Wmissing-prototypes from mips to main Makefile Oleksij Rempel
@ 2018-10-19 12:00 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2018-10-19 12:00 UTC (permalink / raw)
  To: Oleksij Rempel; +Cc: barebox

On Wed, Oct 17, 2018 at 04:08:49PM +0200, Oleksij Rempel wrote:
> Currently we get -Wmissing-prototypes warning only on arch/mips.
> With this patch we should be able to see this warning on all supported
> architectures.
> 
> Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>

Generally I like this. However, there are *so* many warnings on other
architectures that I would prefer fixing another bunch of them before
merging this change.

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@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-10-19 12:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-17 14:08 [PATCH v1] Makefile: move -Wmissing-prototypes from mips to main Makefile Oleksij Rempel
2018-10-19 12:00 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox