summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2019-02-04 22:39:34 -0800
committerKeith Packard <keithp@keithp.com>2019-02-18 13:08:23 -0800
commitebb8ab6a2f5f1245098ad68d0cd007d3f115a24d (patch)
treea383d59b23ac02869416d5f31e0435ac2e0196fc /src
parentd6c3c3618a708d2a1a7948454710e6ae21c2a426 (diff)
altos: Add a pile more compiler warnings
Adds: -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
-rw-r--r--src/lpc/Makefile-lpc.defs7
-rw-r--r--src/stm/Makefile.defs7
-rw-r--r--src/stmf0/Makefile-stmf0.defs7
3 files changed, 18 insertions, 3 deletions
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 \
diff --git a/src/stm/Makefile.defs b/src/stm/Makefile.defs
index 8173b349..7130965a 100644
--- a/src/stm/Makefile.defs
+++ b/src/stm/Makefile.defs
@@ -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 \
diff --git a/src/stmf0/Makefile-stmf0.defs b/src/stmf0/Makefile-stmf0.defs
index 447ddf13..9372edc0 100644
--- a/src/stmf0/Makefile-stmf0.defs
+++ b/src/stmf0/Makefile-stmf0.defs
@@ -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 \