nope. put -Werror in the makefile

not compiling without it is a bug

don't let the default exclude it

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-16 16:56:01 +00:00
parent 4437e41b38
commit f05776f5ff

View File

@@ -4,21 +4,22 @@
CC?=cc
CSTD?=-std=c90
WERROR?=
WERROR?=-Werror
CWARN?=-Wall -Wextra -pedantic
COPT?=-Os
CFLAGS?=-I. $(COPT) $(CWARN) $(CSTD)
CFLAGS?=$(COPT) $(CWARN) $(CSTD)
LDFLAGS?=
DESTDIR?=
PREFIX?=/usr/local
INSTALL?=install
LDIR?=-I.
PROG=nvmutil
all: $(PROG)
$(PROG): nvmutil.c
$(CC) $(CFLAGS) $(WERROR) $(LDFLAGS) nvmutil.c -o $(PROG)
$(CC) $(LDIR) $(WERROR) $(CFLAGS) $(LDFLAGS) nvmutil.c -o $(PROG)
install: $(PROG)
$(INSTALL) -d $(DESTDIR)$(PREFIX)/bin