diff options
| author | stijn | 2014-10-29 10:05:55 +0100 |
|---|---|---|
| committer | stijn | 2014-10-29 10:29:09 +0100 |
| commit | 4e54c876a7236cbb50431f1f6d52c7be2052ed6f (patch) | |
| tree | 7b7cbdab7ca37c3adb14c85dc8cb6e020ed5c1ac /teensy/Makefile | |
| parent | ccedf000ed7e3a155f84ad60afb86ca5f953fe8c (diff) | |
Add -Wpointer-arith flag to prevent problems with pointer arithmetic on void*
Diffstat (limited to 'teensy/Makefile')
| -rw-r--r-- | teensy/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
