Description: Let Debian override --pedantic-errors
 Upstream Superkb will always compile using --pedantic-errors. This
 patch allows debian/rules to export an OVERRIDE_PEDANTIC_ERRORS
 variable so this can be disabled.
 .
 The motivation for this patch is that GCC 6 is detecting an ISO C
 violation by GObject, even though it is valid in GNU C. This patch
 worksaround the fixed --pedantic-errors parameter so it lets
 compilation of Superkb succeed. 
 .
 This patch is used together with OVERRIDE_PEDANTIC_ERRORS in
 debian/rules.

Author: Octavio Alvarez <alvarezp@alvarezp.com>
Bug: 811685
Bug-Debian: https://bugs.debian.org/811685
Forwarded: no
Last-Update: 2016-01-27

--- superkb-0.23.orig/Makefile
+++ superkb-0.23/Makefile
@@ -54,6 +54,10 @@ ifeq ($(shell pkg-config --modversion pa
        PEDANTIC_ERRORS :=
 endif
 
+ifneq ($(OVERRIDE_PEDANTIC_ERRORS),)
+       PEDANTIC_ERRORS := $(OVERRIDE_PEDANTIC_ERRORS)
+endif
+
 #Directory variables
 ifndef PREFIX
 	PREFIX=usr/local/
