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

warning in qtconcurrentfilter.h when using GCC 4.8

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P4: Low P4: Low
    • 4.8.5
    • 4.8.4
    • Core: Threads
    • None
    • Arch Linux x64
      Qt 4.8.4
      GCC 4.8.0
    • 81fdb1725d38d9b73f09e5b98e690111a366234f

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes