[Releasing] Qt 5 alpha 20120314: linux g++ C++11: failure in qtquick1

Thiago Macieira thiago.macieira at intel.com
Fri Mar 16 14:09:59 CET 2012


Error:
src/declarative/qml/qdeclarativecompiler.cpp:445:51: error: narrowing 
conversion of ‘dateTime.QDateTime::date().QDate::toJulianDay()’ from ‘qint64 
{aka long long int}’ to ‘int’ inside { } [-fpermissive]

This is a C++11 build error, but it points to an important problem. In Qt 5, 
QDate has been extended to operate on 64-bit julian days, which means the 
range is much bigger. I don't see a function in the QML compiler to add an 
item of 64-bit in width.

The attached patch is a build fix, but it's not the proper fix (hence the 
warning). I'd like someone who knows this code better to take a look.

With this fix, it compiles and installs.
-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
     Intel Sweden AB - Registration Number: 556189-6027
     Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qdeclarativecompiler.cpp.diff
Type: text/x-patch
Size: 847 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/releasing/attachments/20120316/3b20859c/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/releasing/attachments/20120316/3b20859c/attachment.sig>


More information about the Releasing mailing list