Update Warnings flags in makefiles

This commit is contained in:
CTCaer
2022-10-11 07:25:21 +03:00
parent c0b16320cc
commit 9c1238f99d
5 changed files with 11 additions and 6 deletions

View File

@@ -15,7 +15,7 @@ OBJS = $(addprefix $(BUILD)/,\
)
ARCH := -march=armv4t -mtune=arm7tdmi -mthumb-interwork
CFLAGS = $(ARCH) -O2 -nostdlib -fpie -ffunction-sections -fdata-sections -fomit-frame-pointer -std=gnu11 -Wall $(CUSTOMDEFINES)
CFLAGS = $(ARCH) -O2 -nostdlib -fpie -ffunction-sections -fdata-sections -fomit-frame-pointer -std=gnu11 -Wall -Wsign-compare $(CUSTOMDEFINES)
LDFLAGS = $(ARCH) -fpie -pie -nostartfiles -lgcc
.PHONY: clean all

View File

@@ -1115,7 +1115,7 @@ static void _sdram_lp0_save_params_t210(const void *params)
c32(0, scratch3);
s(PllMInputDivider, 7:0, scratch3, 7:0);
c(0x3e, scratch3, 15:8);
c(0x3E, scratch3, 15:8);
c(0, scratch3, 20:16);
s(PllMKVCO, 0:0, scratch3, 21:21);
s(PllMKCP, 1:0, scratch3, 23:22);
@@ -1125,6 +1125,7 @@ static void _sdram_lp0_save_params_t210(const void *params)
c32(0, scratch4);
s(PllMStableTime, 9:0, scratch4, 9:0);
s(PllMStableTime, 9:0, scratch4, 19:10);
}
#pragma GCC diagnostic ignored "-Wparentheses"

View File

@@ -15,7 +15,7 @@ OBJS = $(addprefix $(BUILD)/,\
)
ARCH := -march=armv4t -mtune=arm7tdmi -mthumb-interwork
CFLAGS = $(ARCH) -O2 -nostdlib -fpie -ffunction-sections -fdata-sections -fomit-frame-pointer -std=gnu11 -Wall $(CUSTOMDEFINES)
CFLAGS = $(ARCH) -O2 -nostdlib -fpie -ffunction-sections -fdata-sections -fomit-frame-pointer -std=gnu11 -Wall -Wsign-compare $(CUSTOMDEFINES)
LDFLAGS = $(ARCH) -fpie -pie -nostartfiles -lgcc
.PHONY: clean all