From c04d74063adf3b1111eb0fbaa9317adbc066cee5 Mon Sep 17 00:00:00 2001
From: MichelJuillard <michel.juillard@mjui.fr>
Date: Wed, 9 Nov 2022 18:04:24 +0100
Subject: [PATCH] add -Wno-unused-private-field

---
 configure.ac    | 2 +-
 src/Makefile.am | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index a1aa904e..e078d7d0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -43,7 +43,7 @@ esac
 # Use C++ for testing headers
 AC_LANG([C++])
 
-AM_CXXFLAGS="-std=gnu++20 -Wall -Wno-dangling-else -Wextra -Wold-style-cast"
+AM_CXXFLAGS="-std=gnu++20 -Wall -Wno-dangling-else -Wextra -Wold-style-cast -Wno-unused-private-field"
 AC_SUBST([AM_CXXFLAGS])
 
 # If default 'ar' is not available, try to find one with a host prefix (see ticket #145)
diff --git a/src/Makefile.am b/src/Makefile.am
index 2a6fed48..a26e7a95 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -66,7 +66,7 @@ EXTRA_DIST = \
 	$(BUILT_SOURCES)
 
 # The -I. is for <FlexLexer.h>
-dynare_preprocessor_CPPFLAGS = $(BOOST_CPPFLAGS) -I. -Wno-unused-private-field
+dynare_preprocessor_CPPFLAGS = $(BOOST_CPPFLAGS) -I.
 dynare_preprocessor_LDFLAGS = $(AM_LDFLAGS) $(BOOST_LDFLAGS)
 # -lpthread is no longer necessary for glibc ⩾ 2.34 (i.e. Debian “bookworm” 12)
 dynare_preprocessor_LDADD = macro/libmacro.a -lpthread
-- 
GitLab