File gcc6-fix.patch of Package perl-qt4

From 70100c1865985e0cabbba5716cb9a6df8099b377 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
Date: Tue, 22 Mar 2016 11:27:24 +0100
Subject: [PATCH] Initialize smokeperl_object properly
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

This patch fixes this build failure with GCC 6:

/builddir/build/BUILD/Qt-0.96.0/qtcore/src/util.cpp:2248:59: error: cannot convert 'bool' to 'void*' in initialization
         static smokeperl_object nothis = { 0, 0, 0, false };
                                                           ^
CPAN RT#111630

Signed-off-by: Petr Písař <ppisar@redhat.com>
---
 qtcore/src/util.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/qtcore/src/util.cpp b/qtcore/src/util.cpp
index b913af3..4c94e2c 100644
--- a/qtcore/src/util.cpp
+++ b/qtcore/src/util.cpp
@@ -2251,7 +2251,7 @@ XS(XS_AUTOLOAD) {
                 methcache.insert(mcid, new Smoke::ModuleIndex(mi));
         }
 
-        static smokeperl_object nothis = { 0, 0, 0, false };
+        static smokeperl_object nothis = { 0, 0, 0, NULL };
         smokeperl_object* call_this = 0;
         if ( SvOK(sv_this) ) {
             call_this = sv_obj_info( sv_this );
-- 
2.5.5

openSUSE Build Service is sponsored by