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* --- qemu-arm/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qemu-arm') diff --git a/qemu-arm/Makefile b/qemu-arm/Makefile index 03cc7db9e..900538080 100644 --- a/qemu-arm/Makefile +++ b/qemu-arm/Makefile @@ -14,7 +14,7 @@ INC += -I$(PY_SRC) INC += -I$(BUILD) CFLAGS_CORTEX_M3 = -mthumb -mcpu=cortex-m3 -CFLAGS = $(INC) -Wall -Werror -ansi -std=gnu99 $(CFLAGS_CORTEX_M3) $(COPT) \ +CFLAGS = $(INC) -Wall -Wpointer-arith -Werror -ansi -std=gnu99 $(CFLAGS_CORTEX_M3) $(COPT) \ -flto -ffunction-sections -fdata-sections #Debugging/Optimization -- cgit v1.2.3