commit d36dfd47c1ff3b6d83ccf4377bf7b3b8698059d0
parent 82f42d01aecffa318fd52b85df5dfad6e2d6354a
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Sat, 28 May 2022 20:35:34 +0300
configure: do not use '-Wreserved-macro-identifier'
Diffstat:
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
@@ -192,7 +192,7 @@ AS_CASE([${enable_build_type}],[debug|debugger],
MHD_CHECK_ADD_CC_CFLAGS([-Wgnu-null-pointer-arithmetic -Wgnu-pointer-arith -Wgnu-redeclared-enum], [CFLAGS_ac])
MHD_CHECK_ADD_CC_CFLAGS([-Wgnu-union-cast -Wgnu-variable-sized-type-not-at-end -Widiomatic-parentheses], [CFLAGS_ac])
MHD_CHECK_ADD_CC_CFLAGS([-Wmissing-noreturn -Wmissing-variable-declarations -Wnested-anon-types], [CFLAGS_ac])
- MHD_CHECK_ADD_CC_CFLAGS([-Wnewline-eof -Wover-aligned -Wredundant-parens -Wreserved-macro-identifier], [CFLAGS_ac])
+ MHD_CHECK_ADD_CC_CFLAGS([-Wnewline-eof -Wover-aligned -Wredundant-parens], [CFLAGS_ac])
MHD_CHECK_ADD_CC_CFLAGS([-Wshift-sign-overflow -Wtautological-compare -Wunaligned-access], [CFLAGS_ac])
MHD_CHECK_ADD_CC_CFLAGS([-Wunused -Wused-but-marked-unused -Wzero-as-null-pointer-constant -Wzero-length-array], [CFLAGS_ac])
@@ -247,6 +247,12 @@ AS_CASE([${enable_build_type}],[release|release-*],
LDFLAGS="${LDFLAGS_ac} ${user_LDFLAGS}"
]
)
+AS_VAR_IF([enable_build_type],["neutral"],[],
+ [ # Any non-neutral build types, final additional flags
+ CFLAGS="${user_CFLAGS}"
+ MHD_CHECK_ADD_CC_CFLAGS([-Wno-reserved-macro-identifier], [CFLAGS_ac])
+ ]
+)
CFLAGS="${CFLAGS_ac} ${user_CFLAGS}"
# Additional flags are checked and added at the end of 'configure'