altos: Add a pile more compiler warnings
authorKeith Packard <keithp@keithp.com>
Tue, 5 Feb 2019 06:39:34 +0000 (22:39 -0800)
committerKeith Packard <keithp@keithp.com>
Mon, 18 Feb 2019 21:08:23 +0000 (13:08 -0800)
Adds:
-Wpointer-arith
-Wstrict-prototypes
-Wmissing-prototypes
-Wmissing-declarations
-Wnested-externs

Signed-off-by: Keith Packard <keithp@keithp.com>
src/lpc/Makefile-lpc.defs
src/stm/Makefile.defs
src/stmf0/Makefile-stmf0.defs

index edeedaf..493650e 100644 (file)
@@ -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 \
index 8173b34..7130965 100644 (file)
@@ -24,7 +24,12 @@ include $(TOPDIR)/Makedefs
 CC=$(ARM_CC)
 LIBS=-L$(NEWLIB_NANO)/arm-none-eabi/lib/thumb/v7-m -lm -lc -lgcc
 
-WARN_FLAGS=-Wall -Wextra -Werror
+WARN_FLAGS=-Wall -Wextra -Werror -Wcast-align \
+       -Wpointer-arith \
+       -Wstrict-prototypes \
+       -Wmissing-prototypes \
+       -Wmissing-declarations \
+       -Wnested-externs
 
 AO_CFLAGS=-I. -I../stm -I../kernel -I../drivers -I../math -I../draw \
        -DNEWLIB_INTEGER_PRINTF_SCANF \
index 447ddf1..9372edc 100644 (file)
@@ -25,7 +25,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)/stmf0 -I$(TOPDIR)/kernel -I$(TOPDIR)/drivers \
        -DNEWLIB_INTEGER_PRINTF_SCANF \