From 4437e41b38c3335c88841dea780f7a2421dbd138 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Mon, 16 Mar 2026 16:54:17 +0000 Subject: nvmutil makefile: define WERROR but blank it settting it to -Werror is wrong, should set it not -Werror. however, put the WERROR variable in the make command. that way, i could test with make WERROR=-Werror Signed-off-by: Leah Rowe --- util/nvmutil/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/nvmutil/Makefile b/util/nvmutil/Makefile index e58c654b..2046e9eb 100644 --- a/util/nvmutil/Makefile +++ b/util/nvmutil/Makefile @@ -4,7 +4,7 @@ CC?=cc CSTD?=-std=c90 -WERROR?=-Werror +WERROR?= CWARN?=-Wall -Wextra -pedantic COPT?=-Os CFLAGS?=-I. $(COPT) $(CWARN) $(CSTD) @@ -18,7 +18,7 @@ PROG=nvmutil all: $(PROG) $(PROG): nvmutil.c - $(CC) $(CFLAGS) $(LDFLAGS) nvmutil.c -o $(PROG) + $(CC) $(CFLAGS) $(WERROR) $(LDFLAGS) nvmutil.c -o $(PROG) install: $(PROG) $(INSTALL) -d $(DESTDIR)$(PREFIX)/bin -- cgit v1.2.1