From 4e54c876a7236cbb50431f1f6d52c7be2052ed6f Mon Sep 17 00:00:00 2001 From: stijn Date: Wed, 29 Oct 2014 10:05:55 +0100 Subject: Add -Wpointer-arith flag to prevent problems with pointer arithmetic on void* --- teensy/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'teensy') diff --git a/teensy/Makefile b/teensy/Makefile index 5746f6c43..5ea4c9dad 100644 --- a/teensy/Makefile +++ b/teensy/Makefile @@ -35,7 +35,7 @@ INC += -I../stmhal INC += -I$(BUILD) INC += -Icore -CFLAGS = $(INC) -Wall -ansi -std=gnu99 -nostdlib $(CFLAGS_CORTEX_M4) +CFLAGS = $(INC) -Wall -Wpointer-arith -ansi -std=gnu99 -nostdlib $(CFLAGS_CORTEX_M4) LDFLAGS = -nostdlib -T mk20dx256.ld -msoft-float -mfloat-abi=soft ifeq ($(USE_ARDUINO_TOOLCHAIN),1) -- cgit v1.2.3