]> gitweb.michael.orlitzky.com - libsvgtiny.git/commitdiff
Makefile: drop -pedantic from CFLAGS
authorMichael Orlitzky <michael@orlitzky.com>
Sat, 7 Jun 2025 17:07:16 +0000 (13:07 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Sun, 8 Jun 2025 02:18:20 +0000 (22:18 -0400)
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

index f5c11c3bd6043832154ac0d8085b614a760290aa..f888f8043acb26b5d108585afa59b94127fbcffc 100644 (file)
--- 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)