[Development] Using Qt 5 with C++11/Clang 3.1?
Olivier Goffart
olivier at woboq.com
Fri Jul 13 15:58:20 CEST 2012
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)
--
Olivier
Woboq - Qt services and support - http://woboq.com
More information about the Development
mailing list