From 216619a85c5a9294e8793969932fcb6c784ecc34 Mon Sep 17 00:00:00 2001 From: Jean THOMAS Date: Mon, 3 Aug 2020 13:25:48 +0200 Subject: [PATCH] Use -Werror --- libgram/Makefile | 2 +- libgram/src/calibration.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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; -- 2.30.2