From 92db8dfa86d72893b646428919360c62481f230a Mon Sep 17 00:00:00 2001 From: midipix Date: Thu, 22 Feb 2024 05:32:33 +0000 Subject: build system: if supported, add -Wpedantic to --strict cflags. --- configure | 2 +- sofort/ccenv/ccswitch.strs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3