From 12a185f3944a3ba62867af8121a76736ca9254c5 Mon Sep 17 00:00:00 2001 From: Adam Dunkels Date: Sat, 26 Sep 2015 11:19:22 +0200 Subject: [PATCH] Added the WERROR=1 flag to the CC2538 and CC26xx CPUs --- cpu/cc2538/Makefile.cc2538 | 4 ++++ cpu/cc26xx-cc13xx/Makefile.cc26xx-cc13xx | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/cpu/cc2538/Makefile.cc2538 b/cpu/cc2538/Makefile.cc2538 index 29795111c..c53a68773 100644 --- a/cpu/cc2538/Makefile.cc2538 +++ b/cpu/cc2538/Makefile.cc2538 @@ -22,6 +22,10 @@ LDFLAGS += -Wl,-Map=$(@:.elf=-$(TARGET).map),--cref,--no-warn-mismatch OBJCOPY_FLAGS += -O binary --gap-fill 0xff OBJDUMP_FLAGS += --disassemble --source --disassembler-options=force-thumb +ifdef WERROR +CFLAGS += -Werror +endif + ### Are we building with code size optimisations? ifeq ($(SMALL),1) CFLAGS += -Os diff --git a/cpu/cc26xx-cc13xx/Makefile.cc26xx-cc13xx b/cpu/cc26xx-cc13xx/Makefile.cc26xx-cc13xx index 781f79b3f..f6ac275da 100644 --- a/cpu/cc26xx-cc13xx/Makefile.cc26xx-cc13xx +++ b/cpu/cc26xx-cc13xx/Makefile.cc26xx-cc13xx @@ -41,6 +41,10 @@ LDFLAGS += -Wl,-Map=$(@:.elf=-$(TARGET).map),--cref,--no-warn-mismatch OBJCOPY_FLAGS += -O binary --gap-fill 0xff OBJDUMP_FLAGS += --disassemble --source --disassembler-options=force-thumb +ifdef WERROR +CFLAGS += -Werror +endif + ### Are we building with code size optimisations? ifeq ($(SMALL),1) CFLAGS += -Os