From 87d141ec59537c61c4878ecdd08ee602969ee1d0 Mon Sep 17 00:00:00 2001 From: Christina Quast Date: Tue, 27 Jan 2015 14:56:33 +0100 Subject: [PATCH] Reanabled some compiler warnings --- sam3s_example/Makefile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/sam3s_example/Makefile b/sam3s_example/Makefile index f61cb10c..ba686cd8 100644 --- a/sam3s_example/Makefile +++ b/sam3s_example/Makefile @@ -97,23 +97,24 @@ INCLUDES += -I$(LIBC_PATH)/include INCLUDES += $(INCLUDES_USB) #INCLUDES += -I$(LIBRARIES) -CFLAGS += -Wall -Wchar-subscripts -Wcomment -Wimplicit-int #-Wformat=2 +CFLAGS += -Wall -Wchar-subscripts -Wcomment -Wimplicit-int -Wformat=2 CFLAGS += -Werror-implicit-function-declaration -Wmain -Wparentheses CFLAGS += -Wsequence-point -Wreturn-type -Wswitch -Wtrigraphs #-Wunused CFLAGS += -Wuninitialized -Wunknown-pragmas -Wfloat-equal -Wundef CFLAGS += -Wshadow -Wpointer-arith -Wbad-function-cast -Wwrite-strings CFLAGS += -Wsign-compare -Waggregate-return -#CFLAGS += -Wformat +CFLAGS += -Wformat CFLAGS += -Wmissing-format-attribute -Wno-deprecated-declarations -#CFLAGS += -Wpacked +CFLAGS += #-Wpacked CFLAGS += -Wredundant-decls -Wnested-externs -Winline #-Wlong-long CFLAGS += -Wunreachable-code CFLAGS += -Wcast-align CFLAGS += -std=c11 +CFLAGS += -Wmissing-noreturn +#CFLAGS += -Wconversion # Disable unused variable warnings CFLAGS += -Wno-unused-but-set-variable -Wno-unused-variable -#CFLAGS += -Wmissing-noreturn -#CFLAGS += -Wconversion +CFLAGS += -Wno-suggest-attribute=noreturn # To reduce application size use only integer printf function. #CFLAGS += -Dprintf=iprintf