From 5a3e6c0ee0187adc38b82e5a001892007e8d5b08 Mon Sep 17 00:00:00 2001
From: nickfajones <nick.fa.jones@gmail.com>
Date: Tue, 8 Aug 2017 11:18:30 +0800
Subject: [PATCH] Fix error caused by C warning flags propogating to C++

As some of these are not supported in C++
Additionally, trim DEBUGFLAGS down to focus optimisation level
and debug symbol level only, as --enable-werror will enable
all of the warning flags that will ever be needed
---
 configure.ac         | 2 +-
 examples/Makefile.am | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 2ee76734..4bbdec1b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -66,7 +66,7 @@ AC_ARG_ENABLE([debug],
     [debug=$enableval], [debug=no])
 
 if test "x${debug}" = "x${enableval}"; then
-  DEBUGCFLAGS="-Wall -Werror -Wformat -Wfatal-errors -O0 -g3"
+  DEBUGCFLAGS="-O0 -g3"
   AC_SUBST([DEBUGCFLAGS])
 fi
 
diff --git a/examples/Makefile.am b/examples/Makefile.am
index 7fe37552..3fb5741d 100644
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -22,7 +22,7 @@
 # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
 AM_CFLAGS = $(WARNCFLAGS) $(DEBUGCFLAGS)
-AM_CXXFLAGS = $(WARNCFLAGS) $(DEBUGCFLAGS)
+AM_CXXFLAGS = $(DEBUGCFLAGS)
 AM_CPPFLAGS = \
 	-I$(top_srcdir)/lib/includes \
 	-I$(top_builddir)/lib/includes \
-- 
GitLab