Dne Po 01.úno.2016 10:30:09, ppisar napsal(a):
Show quoted text> When building Qt-0.96.0 with GCC 6, the build fails like:
>
Attached patch fixes it.
-- Petr
From 1d30fbbd8fad3d9ee87f1b524384bb337c559d88 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
Date: Mon, 1 Feb 2016 16:31:45 +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 0c94e32..4857573 100644
--- a/qtcore/src/util.cpp
+++ b/qtcore/src/util.cpp
@@ -2225,7 +2225,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.0