summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2020-01-14 10:06:03 +0000
committerSimon McVittie <smcv@collabora.com>2020-01-14 10:07:46 +0000
commit97ad684ae54508178b6cd9fa659062e8e71978dd (patch)
treea58c1138e6d1e1191bf83885e20e640228bd31d8
parent4667a29ef8142077a90272b9d204ba89c807ab03 (diff)
downloaddbus-python-97ad684ae54508178b6cd9fa659062e8e71978dd.tar.gz
build: Disable -Wdeclaration-after-statement
Python 3.9 nightly builds rely on intermixed declarations and statements in their headers, so we can no longer enforce this. Signed-off-by: Simon McVittie <smcv@collabora.com>
-rw-r--r--configure.ac2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 2bd130c..fb5c6ee 100644
--- a/configure.ac
+++ b/configure.ac
@@ -132,6 +132,7 @@ AX_COMPILER_FLAGS([WARN_CFLAGS],
dnl AX_COMPILER_FLAGS, and are not const-correct for strings
[ \
-Wdeprecated-declarations \
+ -Wno-declaration-after-statement \
-Wno-duplicated-branches \
-Wno-inline \
-Wno-redundant-decls \
@@ -141,6 +142,7 @@ AX_COMPILER_FLAGS([WARN_CFLAGS],
dnl AX_COMPILER_FLAGS doesn't order the compiler flags correctly to be able
dnl to disable flags that it would normally enable
WARN_CFLAGS="$(echo "${WARN_CFLAGS}" | ${SED} \
+ -e s/-Wdeclaration-after-statement// \
-e s/-Wduplicated-branches// \
-e s/-Winline// \
-e s/-Wredundant-decls// \