From 97ad684ae54508178b6cd9fa659062e8e71978dd Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 14 Jan 2020 10:06:03 +0000 Subject: 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 --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) 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// \ -- cgit v1.2.1