From: Jean THOMAS Date: Mon, 3 Aug 2020 11:25:48 +0000 (+0200) Subject: Use -Werror X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=216619a85c5a9294e8793969932fcb6c784ecc34;p=gram.git Use -Werror --- diff --git a/libgram/Makefile b/libgram/Makefile index 80f454f..6093828 100644 --- a/libgram/Makefile +++ b/libgram/Makefile @@ -8,7 +8,7 @@ OBJCOPY := $(TRIPLE)objcopy AR := $(TRIPLE)ar LD := $(TRIPLE)ld -CFLAGS += -fvisibility=hidden -nostdlib -Os -Iinclude -std=c99 +CFLAGS += -fvisibility=hidden -nostdlib -Os -Iinclude -std=c99 -Wall -Werror -pedantic LDFLAGS += -nostdlib ifeq ($(TRIPLE),riscv64-unknown-elf-) diff --git a/libgram/src/calibration.c b/libgram/src/calibration.c index 2802802..a77c44a 100644 --- a/libgram/src/calibration.c +++ b/libgram/src/calibration.c @@ -48,6 +48,8 @@ int gram_generate_calibration(const struct gramCtx *ctx, struct gramProfile *pro dfii_setsw(ctx, true); + (void)tmp; + // Find minimal rdly for (rdly = 0; rdly < 8; rdly++) { profile->rdly_p0 = rdly;