From 8636ca41f48415961c5bbec8edde044ce9d451b1 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sun, 15 Mar 2026 21:30:16 +0000 Subject: util/nvmutil: more portable Makefile -Werror removed, for older compilers actual warnings still there -std is configurable now e.g. make CSTD=-c90 make CSTD=-c99 Signed-off-by: Leah Rowe --- util/nvmutil/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/util/nvmutil/Makefile b/util/nvmutil/Makefile index 719e1c1e..c89b7228 100644 --- a/util/nvmutil/Makefile +++ b/util/nvmutil/Makefile @@ -3,7 +3,11 @@ # Copyright (c) 2023 Riku Viitanen CC?=cc -CFLAGS?=-Os -Wall -Wextra -Werror -pedantic -std=c90 +CSTD?=-std=c90 +WERROR?= +CWARN?=-Wall -Wextra -pedantic +COPT?=-Os +CFLAGS?=$(COPT) $(CWARN) $(CSTD) LDFLAGS?= DESTDIR?= PREFIX?=/usr/local -- cgit v1.2.1