From 90baf6a403a341fbf609fc4e68d1659515b2b21d Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Sat, 13 Feb 2021 21:49:59 -0700 Subject: [PATCH] util/amdfwtool: Enable warnings as errors BUG=None TEST=Build Signed-off-by: Martin Roth Change-Id: I7746430c24dd052c435561236454b456bc597517 Reviewed-on: https://review.coreboot.org/c/coreboot/+/50644 Tested-by: build bot (Jenkins) Reviewed-by: Arthur Heymans --- util/amdfwtool/Makefile | 2 +- util/amdfwtool/Makefile.inc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/util/amdfwtool/Makefile b/util/amdfwtool/Makefile index 9dbce9c791..2fd128d895 100644 --- a/util/amdfwtool/Makefile +++ b/util/amdfwtool/Makefile @@ -5,7 +5,7 @@ HOSTCC ?= cc SRC = amdfwtool.c data_parse.c OBJ = $(SRC:%.c=%.o) TARGET = amdfwtool -CFLAGS=-O2 -Wall -Wextra -Wshadow +CFLAGS=-O2 -Wall -Wextra -Wshadow -Werror all: $(TARGET) diff --git a/util/amdfwtool/Makefile.inc b/util/amdfwtool/Makefile.inc index e794ed9009..4b7db76e4d 100644 --- a/util/amdfwtool/Makefile.inc +++ b/util/amdfwtool/Makefile.inc @@ -2,7 +2,7 @@ amdfwtoolobj = amdfwtool.o data_parse.o -AMDFWTOOLCFLAGS=-O2 -Wall -Wextra -Wshadow +AMDFWTOOLCFLAGS=-O2 -Wall -Wextra -Wshadow -Werror $(objutil)/amdfwtool/%.o: $(top)/util/amdfwtool/%.c # $(HEADER) $(HOSTCC) $(AMDFWTOOLCFLAGS) $(HOSTCFLAGS) -c -o $@ $<