litedram: set Makefile -Werror
authorMatt Johnston <matt@codeconstruct.com.au>
Fri, 24 Sep 2021 04:24:29 +0000 (12:24 +0800)
committerMatt Johnston <matt@codeconstruct.com.au>
Fri, 14 Jan 2022 00:47:44 +0000 (08:47 +0800)
Signed-off-by: Matt Johnston <matt@codeconstruct.com.au>
litedram/gen-src/sdram_init/Makefile

index 662cc26326cad3c0d30e07e96ae3ca6eff554f23..6f50daea2e2249e4b2beeac38b7d051315b12ef2 100644 (file)
@@ -32,6 +32,7 @@ CPPFLAGS += -I$(LXSRC_DIR) -I$(LXINC_DIR) -I$(LXINC_DIR)/base -I$(LXSRC_DIR)/lib
 
 CPPFLAGS += -isystem $(shell $(CC) -print-file-name=include)
 CFLAGS = -Os -g -Wall -std=c99 -m64 -mabi=elfv2 -msoft-float -mno-string -mno-multiple -mno-vsx -mno-altivec -mlittle-endian -fno-stack-protector -mstrict-align -ffreestanding -fdata-sections -ffunction-sections -fno-delete-null-pointer-checks 
+CFLAGS += -Werror
 ASFLAGS = $(CPPFLAGS) $(CFLAGS)
 LDFLAGS = -static -nostdlib -T $(OBJ)/$(PROGRAM).lds --gc-sections