summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorMartin Roth <martin@coreboot.org>2021-02-13 21:49:59 -0700
committerPatrick Georgi <pgeorgi@google.com>2021-02-16 08:10:12 +0000
commit90baf6a403a341fbf609fc4e68d1659515b2b21d (patch)
tree58d37ef0afc33cd07c12595290a3240ac4d4f1a0 /util
parenta8e31caee8ddb9563cdd3bac48ee3b9dc5cf6f48 (diff)
util/amdfwtool: Enable warnings as errors
BUG=None TEST=Build Signed-off-by: Martin Roth <martin@coreboot.org> Change-Id: I7746430c24dd052c435561236454b456bc597517 Reviewed-on: https://review.coreboot.org/c/coreboot/+/50644 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Diffstat (limited to 'util')
-rw-r--r--util/amdfwtool/Makefile2
-rw-r--r--util/amdfwtool/Makefile.inc2
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 $@ $<