From e1efbe18292c7176ca1ef35509c5f1263a4c354b Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Sat, 7 Jun 2025 13:07:16 -0400 Subject: [PATCH] Makefile: drop -pedantic from CFLAGS With -pedantic enabled, -Werror causes build failures when we try to call lwc_string_ref(). For example, src/svgtiny_css.c:120:9: error: use of GNU statement expression extension from macro expansion [-Werror, -Wgnu-statement-expression-from-macro-expansion] 120 | *abs = lwc_string_ref(rel); will happen in the very next commit. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f5c11c3..f888f80 100644 --- a/Makefile +++ b/Makefile @@ -21,7 +21,7 @@ TESTRUNNER = test/runtest.sh $(BUILDDIR) $(EXEEXT) # Toolchain flags WARNFLAGS := -Wall -W -Wundef -Wpointer-arith -Wcast-align \ -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \ - -Wmissing-declarations -Wnested-externs -pedantic + -Wmissing-declarations -Wnested-externs # BeOS/Haiku/AmigaOS standard library headers create warnings ifneq ($(BUILD),i586-pc-haiku) ifneq ($(findstring amigaos,$(BUILD)),amigaos) -- 2.49.0