[Development] Using Qt 5 with C++11/Clang 3.1?
Thiago Macieira
thiago.macieira at intel.com
Fri Jul 13 17:46:30 CEST 2012
On sexta-feira, 13 de julho de 2012 15.58.20, Olivier Goffart wrote:
> On Friday 13 July 2012 09:44:05 Stephen Chu wrote:
> > On 7/7/12 4:32 PM, Thiago Macieira wrote:
> >
> > However, 3.2 (trunk 160101) generates the following warning:
> >
> > /Qt/5.0/qtbase/include/QtCore/../../src/corelib/tools/qsharedpointer_impl.
> > h: 613:49: warning: field is uninitialized when used here
> > [-Wuninitialized]>
> > inline QWeakPointer(X *ptr, bool) : d(ptr ? d->getAndRef(ptr) : 0),
> >
> > value(ptr)
> >
> > ^
> >
> > The warning makes sense to me on the appearance. Don't know enough about
> > internal stuffs to be sure though.
>
> getAndRef is static, so it does not matter. But it is true the code should
> be changed to Data::getAndRef(ptr)
And it's fixed.
--
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: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20120713/8d100876/attachment.sig>
More information about the Development
mailing list