Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-22908

declaration of 'pointer' shadows a global declaration in qscopedpointer.h

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 4.7.3
    • None
    • Debian testing on PC laptop x86-32 (Intel Core 2 Duo Proc T8100), Version: 4:4.7.3-5. gcc (Debian 4.6.2-4)

    Description

      I'm a simple contributor to Libreoffice and with WaE enabled, I've got some declaration of 'pointer' shadows a global declaration errors this :
      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, I put a wrapper but it could be useful to fix this.

      Julien.

      Attachments

        1. qscopedpointer.h
          5 kB
          Julien Nabet
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            earthdomain Earth Domain (Inactive)
            julien2412 Julien Nabet
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes