paparazzi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[paparazzi-commits] [4867] changing compiler options, adding more warnin


From: antoine drouin
Subject: [paparazzi-commits] [4867] changing compiler options, adding more warnings
Date: Sat, 24 Apr 2010 02:59:17 +0000

Revision: 4867
          http://svn.sv.gnu.org/viewvc/?view=rev&root=paparazzi&revision=4867
Author:   poine
Date:     2010-04-24 02:59:17 +0000 (Sat, 24 Apr 2010)
Log Message:
-----------
changing compiler options, adding more warnings

Modified Paths:
--------------
    paparazzi3/trunk/conf/Makefile.stm32

Modified: paparazzi3/trunk/conf/Makefile.stm32
===================================================================
--- paparazzi3/trunk/conf/Makefile.stm32        2010-04-24 02:58:09 UTC (rev 
4866)
+++ paparazzi3/trunk/conf/Makefile.stm32        2010-04-24 02:59:17 UTC (rev 
4867)
@@ -67,22 +67,23 @@
 # linker script
 LD_SCRIPT = $(SRC_ARCH)/stm32f10x_flash_hd.ld
 
-CFLAGS = -I. -I./$(ARCHI) $(INCLUDES) -D__thumb2__ -Wall -ansi -std=gnu99 -c 
-fno-common -Os -g -mcpu=cortex-m3 -mthumb -msoft-float -ffunction-sections 
-fdata-sections
+CFLAGS = -I. -I./$(ARCHI) $(INCLUDES) -D__thumb2__ -Wall -c -msoft-float
 CFLAGS += -Wl,gc-sections
-#CFLAGS  = -mcpu=$(MCU) -mthumb -ansi
-#CFLAGS += -std=c99
+CFLAGS += -mcpu=$(MCU) -mthumb -ansi
+CFLAGS += -std=gnu99
 #CFLAGS += -malignment-traps
-#CFLAGS += -fno-common -O$(OPT) -g$(DEBUG)
-#CFLAGS += -ffunction-sections -fdata-sections
-#CFLAGS += -Wall -Wimplicit
-#CFLAGS += -Wcast-align
-#CFLAGS += -Wpointer-arith -Wswitch
-#CFLAGS += -Wredundant-decls -Wreturn-type -Wshadow -Wunused
-#CFLAGS += -Wa,-adhlns=$(OBJDIR)/$(notdir $(subst $(suffix $<),.lst,$<))
-#CFLAGS += -Wnested-externs
-#CFLAGS += -Wmissing-prototypes 
-#CFLAGS += -Wstrict-prototypes
-#CFLAGS += -Wmissing-declarations
+CFLAGS += -fno-common -O$(OPT) -g$(DEBUG)
+CFLAGS += -ffunction-sections -fdata-sections
+CFLAGS += -Wall -Wimplicit
+CFLAGS += -Wcast-align
+CFLAGS += -Wpointer-arith -Wswitch
+CFLAGS += -Wredundant-decls -Wreturn-type -Wshadow -Wunused
+CFLAGS += -Wa,-adhlns=$(OBJDIR)/$(notdir $(subst $(suffix $<),.lst,$<))
+CFLAGS += -Wnested-externs
+CFLAGS += -Wmissing-prototypes 
+CFLAGS += -Wstrict-prototypes
+CFLAGS += -Wmissing-declarations
+CFLAGS += -Wswitch-default
 
 CFLAGS += $($(TARGET).CFLAGS)
 
@@ -90,7 +91,7 @@
 AFLAGS += -x assembler-with-cpp -Wa,-adhlns=$(OBJDIR)/$(<:.S=.lst),--g$(DEBUG)
 
 LDFLAGS = -D__thumb2__ -T$(LD_SCRIPT) -nostartfiles  -L$(GCC_LIB_DIR) -O$(OPT) 
--gc-sections
-#LDFLAGS += -Wl,-Map=$(OBJDIR)/$(TARGET).map,--cref,--gc-sections
+LDFLAGS += -Wl,-Map=$(OBJDIR)/$(TARGET).map,--cref,--gc-sections
 LDLIBS  += -lc -lm -lgcc -lcmsis -lstm32 
 
 CPFLAGS = -j .isr_vector -j .text -j .data -Obinary





reply via email to

[Prev in Thread] Current Thread [Next in Thread]