[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#650115: WaE on libqt4 declaration of ‘pointer’ shadows a global declaratio



Package:libqt4-dev
Dear Maintainer,

I'm on a pc x86-32 Debian testing updated almost every day.
Laptop Sony Vaio VGN-CR31S (Intel Core 2 Duo Processor T8100, Ati Mobility
Radeon X2300).

I'm a simple contributor to Libreoffice and I compile the git sources of it in debug, with symbols enabled and warnings as errors (WaE).
gcc Debian 4.6.2-4

I had these lines :
In file included from /usr/include/qt4/QtCore/qdatastream.h:45:0,
                 from /usr/include/qt4/QtCore/qpair.h:45,
                 from /usr/include/qt4/QtCore/qhash.h:49,
from /home/maryline/compile-libreoffice/libo/vcl/unx/kde4/KDEXLib.hxx:35, from /home/maryline/compile-libreoffice/libo/vcl/unx/kde4/KDEData.cxx:31: /usr/include/qt4/QtCore/qscopedpointer.h: In static member function ‘static void QScopedPointerDeleter<T>::cleanup(T*)’: /usr/include/qt4/QtCore/qscopedpointer.h:55:5: error: declaration of ‘pointer’ shadows a global declaration [-Werror=shadow] /usr/include/qt4/QtCore/qscopedpointer.h: In static member function ‘static void QScopedPointerArrayDeleter<T>::cleanup(T*)’: /usr/include/qt4/QtCore/qscopedpointer.h:70:5: error: declaration of ‘pointer’ shadows a global declaration [-Werror=shadow] /usr/include/qt4/QtCore/qscopedpointer.h: In static member function ‘static void QScopedPointerPodDeleter::cleanup(void*)’: /usr/include/qt4/QtCore/qscopedpointer.h:83:47: error: declaration of ‘pointer’ shadows a global declaration [-Werror=shadow]
cc1plus: all warnings being treated as errors

For the moment, following the advice from LO devs, I put a wrapper.
I opened too a tracker on qt :
https://bugreports.qt.nokia.com/browse/QTBUG-22908

package version of libqt4-dev : 4.7.3-5

Hope it helps.

Julien Nabet



Reply to: