From 318ef111a7ae2967280b05b90626df68d5a760e0 Mon Sep 17 00:00:00 2001
From: Amar Singh <nly@disroot.org>
Date: Mon, 6 Jan 2020 05:22:25 +0530
Subject: [PATCH] Do not show CC -Wpedantic warnings

Disable warnings about deviations from standard C code.
---
 configure.ac | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 305432b3..ba0774df 100644
--- a/configure.ac
+++ b/configure.ac
@@ -451,10 +451,10 @@ if test "x$debug" = "xyes" ; then
 	GCC_STACK_PROTECT_CC
 	GCC_STACK_CLASH_PROTECTION
 	GCC_FORTIFY_SOURCE_CC
-	WARNING_CFLAGS="-g -Wall -Werror"
+	WARNING_CFLAGS="-g -Wall -Wno-pedantic -Werror"
 else
 	AC_MSG_RESULT(no)
-	WARNING_CFLAGS="-Wall"
+	WARNING_CFLAGS="-Wall -Wno-pedantic"
 fi
 
 # Enable or disable compiler warning flags
-- 
2.24.0

