Use -Werror
authorJean THOMAS <git0@pub.jeanthomas.me>
Mon, 3 Aug 2020 11:25:48 +0000 (13:25 +0200)
committerJean THOMAS <git0@pub.jeanthomas.me>
Mon, 3 Aug 2020 11:25:48 +0000 (13:25 +0200)
libgram/Makefile
libgram/src/calibration.c

index 80f454ff2f0d18a9a17d87a8d56a24c49feeb130..6093828e83e2efc45dbe07480b9913082fb89418 100644 (file)
@@ -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-)
index 280280288b1743fe6a3dc6180d3150ef4f818613..a77c44afdc843eb1113251dba6ad398c4195730a 100644 (file)
@@ -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;