Skip Menu |
 

This queue is for tickets about the Qt CPAN distribution.

Report information
The Basics
Id: 111630
Status: new
Priority: 0/
Queue: Qt

People
Owner: Nobody in particular
Requestors: ppisar [...] redhat.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.96.0
Fixed in: (no value)

Attachments
Qt-0.96.0-Initialize-smokeperl_object-properly.patch



Subject: Fails to build with GCC 6
Download (untitled) / with headers
text/plain 420b
When building Qt-0.96.0 with GCC 6, the build fails like: /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 }; ^ This is because the last smokeperl_object member is a pointer and the initialization should use NULL instead of false.
From: ppisar [...] redhat.com
Download (untitled) / with headers
text/plain 145b
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
Subject: Qt-0.96.0-Initialize-smokeperl_object-properly.patch
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
From: ppisar [...] redhat.com
Download (untitled) / with headers
text/plain 548b
On 2016-2月-01 月 10:30:09, ppisar wrote: Show quoted text
> When building Qt-0.96.0 with GCC 6, the build fails like: > > /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 }; > ^ > > This is because the last smokeperl_object member is a pointer and the > initialization should use NULL instead of false.
Forwarded to KDE <https://bugs.kde.org/show_bug.cgi?id=360844>.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.