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

warning in qtconcurrentfilter.h when using GCC 4.8

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4: Low
    • Resolution: Done
    • Affects Version/s: 4.8.4
    • Fix Version/s: 4.8.5
    • Component/s: Core: Threads
    • Labels:
      None
    • Environment:
      Arch Linux x64
      Qt 4.8.4
      GCC 4.8.0
    • Commits:
      81fdb1725d38d9b73f09e5b98e690111a366234f

      Description

      Any file that includes <QtGui> will produce this warning when compiled with GCC 4.8:

      In file included from /usr/include/qt4/QtCore/QtCore:53:0,
      from /usr/include/qt4/QtGui/QtGui:3,
      [...]
      /usr/include/qt4/QtCore/qtconcurrentfilter.h: In function 'QtConcurrent::ThreadEngineStarter<void> QtConcurrent::filterInternal(Sequence&, KeepFunctor, ReduceFunctor)':
      /usr/include/qt4/QtCore/qtconcurrentfilter.h:108:47: warning: typedef 'Iterator' locally defined but not used [-Wunused-local-typedefs]
      typedef typename Sequence::const_iterator Iterator;

      The warning is harmless of course, but it's annoying because it repeats for every single file in my project, hiding the real problems.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            • Assignee:
              thiago Thiago Macieira
              Reporter:
              maarten baert Maarten Baert
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes