From d20f26d2933d6a500349821c2b76ea3e9bce4b76 Mon Sep 17 00:00:00 2001 From: Christina Quast Date: Tue, 27 Jan 2015 14:40:31 +0100 Subject: [PATCH] Makefile: Disable unused variable warnings --- sam3s_example/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sam3s_example/Makefile b/sam3s_example/Makefile index 042c8713..f61cb10c 100644 --- a/sam3s_example/Makefile +++ b/sam3s_example/Makefile @@ -110,6 +110,8 @@ CFLAGS += -Wredundant-decls -Wnested-externs -Winline #-Wlong-long CFLAGS += -Wunreachable-code CFLAGS += -Wcast-align CFLAGS += -std=c11 +# Disable unused variable warnings +CFLAGS += -Wno-unused-but-set-variable -Wno-unused-variable #CFLAGS += -Wmissing-noreturn #CFLAGS += -Wconversion @@ -166,7 +168,7 @@ $(1): $$(ASM_OBJECTS_$(1)) $$(C_OBJECTS_$(1)) $$(C_OBJECTS_$(1)): $(OBJ)/$(1)_%.o: %.c Makefile $(OBJ) $(BIN) @echo [COMPILING $$@] - @$(CC) $(CFLAGS) -D$(1) -Wa,-ahlms=$(BIN)/$$*.lst -c -o $$@ $$< + $(CC) $(CFLAGS) -D$(1) -Wa,-ahlms=$(BIN)/$$*.lst -c -o $$@ $$< $$(ASM_OBJECTS_$(1)): $(OBJ)/$(1)_%.o: %.S Makefile $(OBJ) $(BIN) @echo [ASSEMBLING $$@]