aboutsummaryrefslogtreecommitdiff
path: root/stmhal/Makefile
diff options
context:
space:
mode:
authorstijn2014-10-29 10:05:55 +0100
committerstijn2014-10-29 10:29:09 +0100
commit4e54c876a7236cbb50431f1f6d52c7be2052ed6f (patch)
tree7b7cbdab7ca37c3adb14c85dc8cb6e020ed5c1ac /stmhal/Makefile
parentccedf000ed7e3a155f84ad60afb86ca5f953fe8c (diff)
Add -Wpointer-arith flag to prevent problems with pointer arithmetic on void*
Diffstat (limited to 'stmhal/Makefile')
-rw-r--r--stmhal/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/Makefile b/stmhal/Makefile
index 878e6ca10..f444f0045 100644
--- a/stmhal/Makefile
+++ b/stmhal/Makefile
@@ -42,7 +42,7 @@ INC += -I$(USBDEV_DIR)/core/inc -I$(USBDEV_DIR)/class/cdc_msc_hid/inc
INC += -I$(FATFS_DIR)/src
CFLAGS_CORTEX_M4 = -mthumb -mtune=cortex-m4 -mabi=aapcs-linux -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -fsingle-precision-constant -Wdouble-promotion
-CFLAGS = $(INC) -Wall -Werror -ansi -std=gnu99 -nostdlib $(CFLAGS_MOD) $(CFLAGS_CORTEX_M4) $(COPT)
+CFLAGS = $(INC) -Wall -Wpointer-arith -Werror -ansi -std=gnu99 -nostdlib $(CFLAGS_MOD) $(CFLAGS_CORTEX_M4) $(COPT)
CFLAGS += -Iboards/$(BOARD)
LDFLAGS = -nostdlib -T stm32f405.ld -Map=$(@:.elf=.map) --cref