From ebb8ab6a2f5f1245098ad68d0cd007d3f115a24d Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Mon, 4 Feb 2019 22:39:34 -0800 Subject: altos: Add a pile more compiler warnings Adds: -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs Signed-off-by: Keith Packard --- src/lpc/Makefile-lpc.defs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/lpc') diff --git a/src/lpc/Makefile-lpc.defs b/src/lpc/Makefile-lpc.defs index edeedaf0..493650e1 100644 --- a/src/lpc/Makefile-lpc.defs +++ b/src/lpc/Makefile-lpc.defs @@ -26,7 +26,12 @@ endif ELFTOHEX=$(TOPDIR)/../ao-tools/ao-elftohex/ao-elftohex CC=$(ARM_CC) -WARN_FLAGS=-Wall -Wextra -Werror -Wcast-align +WARN_FLAGS=-Wall -Wextra -Werror -Wcast-align \ + -Wpointer-arith \ + -Wstrict-prototypes \ + -Wmissing-prototypes \ + -Wmissing-declarations \ + -Wnested-externs AO_CFLAGS=-I. -I$(TOPDIR)/lpc -I$(TOPDIR)/kernel -I$(TOPDIR)/drivers \ -DNEWLIB_INTEGER_PRINTF_SCANF \ -- cgit v1.2.3