summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-02-22 05:32:33 +0000
committermidipix <writeonce@midipix.org>2024-02-22 05:35:57 +0000
commit8e7ea318909924d3047da1aa6334d4c86e999b28 (patch)
treefac4833e8bfc7670c37d7056df4deb5d4959ada2
parent151e3bd47afc90c0f1bb471a40ecc020578a0419 (diff)
downloadsofort-8e7ea318909924d3047da1aa6334d4c86e999b28.tar.bz2
sofort-8e7ea318909924d3047da1aa6334d4c86e999b28.tar.xz
build system: if supported, add -Wpedantic to --strict cflags.
-rwxr-xr-xconfigure2
-rw-r--r--sofort/ccenv/ccswitch.strs1
2 files changed, 2 insertions, 1 deletions
diff --git a/configure b/configure
index a89de3e..b535af1 100755
--- a/configure
+++ b/configure
@@ -718,7 +718,7 @@ config_flags()
# ccstrict
if [ _$mb_ccstrict = _yes ]; then
- mb_cflags_strict='$(_CFLAGS_Wall) $(_CFLAGS_Werror) $(_CFLAGS_Wextra) $(_CFLAGS_Wundef)'
+ mb_cflags_strict='$(_CFLAGS_Wall) $(_CFLAGS_Werror) $(_CFLAGS_Wextra) $(_CFLAGS_Wundef) $(_CFLAGS_Wpedantic)'
fi
# ldstrict
diff --git a/sofort/ccenv/ccswitch.strs b/sofort/ccenv/ccswitch.strs
index 0a76f03..277e02e 100644
--- a/sofort/ccenv/ccswitch.strs
+++ b/sofort/ccenv/ccswitch.strs
@@ -34,6 +34,7 @@
-Werror
-Wextra
-Wundef
+-Wpedantic
# debugging
-g