Update from gcc 8.3.1 to gcc 9.1.1 - lots of new warnings when compiling FET

Started by Liviu Lalescu, May 27, 2019, 08:14:04 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Liviu Lalescu

My openSUSE Tumbleweed just updated my gcc from 8.3.1 to 9.1.1. I have Qt 5.12.3 (latest). I now get lots of warnings when compiling FET, like:

In file included from ../../../Qt5.12.3/5.12.3/gcc_64/include/QtCore/qlocale.h:43,
                 from ../../../Qt5.12.3/5.12.3/gcc_64/include/QtCore/qtextstream.h:46,
                 from ../../../Qt5.12.3/5.12.3/gcc_64/include/QtCore/QTextStream:1,
                 from engine/solution.h:31,
                 from engine/timetableexport.cpp:49:
../../../Qt5.12.3/5.12.3/gcc_64/include/QtCore/qvariant.h: In constructor 'QVariant::QVariant(QVariant&&)':
../../../Qt5.12.3/5.12.3/gcc_64/include/QtCore/qvariant.h:273:25: warning: implicitly-declared 'QVariant::Private& QVariant::Private::operator=(const QVariant::Private&)' is deprecated [-Wdeprecated-copy]
  273 |     { other.d = Private(); }
      |                         ^
../../../Qt5.12.3/5.12.3/gcc_64/include/QtCore/qvariant.h:399:16: note: because 'QVariant::Private' has user-provided 'QVariant::Private::Private(const QVariant::Private&)'
  399 |         inline Private(const Private &other) Q_DECL_NOTHROW
      |                ^~~~~~~
In file included from ../../../Qt5.12.3/5.12.3/gcc_64/include/QtGui/qevent.h:50,
                 from ../../../Qt5.12.3/5.12.3/gcc_64/include/QtGui/QList:1,
                 from engine/timeconstraint.h:30,
                 from engine/rules.h:26,
                 from engine/timetable.h:26,
                 from engine/timetableexport.cpp:47:
../../../Qt5.12.3/5.12.3/gcc_64/include/QtCore/qvariant.h: In constructor 'QVariant::QVariant(QVariant&&)':
../../../Qt5.12.3/5.12.3/gcc_64/include/QtCore/qvariant.h:273:25: warning: implicitly-declared 'QVariant::Private& QVariant::Private::operator=(const QVariant::Private&)' is deprecated [-Wdeprecated-copy]
  273 |     { other.d = Private(); }
      |                         ^
../../../Qt5.12.3/5.12.3/gcc_64/include/QtCore/qvariant.h:399:16: note: because 'QVariant::Private' has user-provided 'QVariant::Private::Private(const QVariant::Private&)'
  399 |         inline Private(const Private &other) Q_DECL_NOTHROW
      |                ^~~~~~~
In file included from ../../../Qt5.12.3/5.12.3/gcc_64/include/QtCore/qobject.h:49,
                 from ../../../Qt5.12.3/5.12.3/gcc_64/include/QtCore/qcoreapplication.h:46,
                 from ../../../Qt5.12.3/5.12.3/gcc_64/include/QtCore/QCoreApplication:1,
                 from engine/timeconstraint.h:25,
                 from engine/rules.h:26,
                 from engine/timetable.h:26,
                 from engine/timetableexport.cpp:47:


I just hope the Qt team will solve these in the next release, as I think they are from them.

Volker Dirr


Liviu Lalescu


Liviu Lalescu

Unfortunately a long time to wait. Release of Qt 5.13.0 is scheduled for 13 June 2019.