From a88364ec706f0ced1dcb2820f2c66c1c96f6d1ab Mon Sep 17 00:00:00 2001
From: Simon McVittie <smcv@collabora.com>
Date: Tue, 16 Jun 2020 13:40:13 +0100
Subject: [PATCH] build: Silence unwanted warnings

Signed-off-by: Simon McVittie <smcv@collabora.com>
---
 configure.ac | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/configure.ac b/configure.ac
index c134e3a0c..d3d3fedf8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -52,6 +52,8 @@ AX_COMPILER_FLAGS([], [], [], [], [ \
     -Wno-pointer-arith \
     -Wno-declaration-after-statement \
 ])
+WARN_CFLAGS=$(echo "$WARN_CFLAGS" | sed -Ee 's,-W(error=)?declaration-after-statement,,')
+WARN_CFLAGS=$(echo "$WARN_CFLAGS" | sed -Ee 's,-W(error=)?pointer-arith,,')
 
 AC_CHECK_FUNCS_ONCE([secure_getenv])
 
-- 
GitLab