summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2020-12-22 07:43:13 -0800
committerKaz Kylheku <kaz@kylheku.com>2020-12-22 07:43:13 -0800
commit3a2f5ed79f7d1fc6e9fe50b8928c0d748c28f579 (patch)
treee1530ac5ec9bb1e0f9e48a169f18e2c3abdd1d59
parent680ebbaeb3adac3c268c348babe38871e92cd3fd (diff)
downloadtxr-3a2f5ed79f7d1fc6e9fe50b8928c0d748c28f579.tar.gz
txr-3a2f5ed79f7d1fc6e9fe50b8928c0d748c28f579.tar.bz2
txr-3a2f5ed79f7d1fc6e9fe50b8928c0d748c28f579.zip
configure: C++ fix for recently added C flags.
* configure: When we detect we are using C++, we filter out certain C-only compiler options. TO that list, we must add a pattern that gets rid of the recently added -Wold-style-definitions and -Wold-style-declarations.
-rwxr-xr-xconfigure1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure b/configure
index 13e2521a..c801a86c 100755
--- a/configure
+++ b/configure
@@ -771,6 +771,7 @@ if [ $cplusplus ] ; then
case $flag in
*=implicit-function-declaration | \
*=missing-prototypes | \
+ *=old-style-* | \
*=strict-prototypes )
continue
;;