intel / thermal_daemon

Thermal daemon for IA
GNU General Public License v2.0
554 stars 118 forks source link

deprecation warnings when building ThermalMonitor #330

Closed pabs3 closed 4 months ago

pabs3 commented 2 years ago

When I build ThermalMonitor on Debian bookworm I get some compile warnings:

g++ -c -pipe -O2 -Wall -Wextra -D_REENTRANT -fPIC -DQT_NO_DEBUG_OUTPUT -DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -I. -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtPrintSupport -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtDBus -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I. -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o mainwindow.o mainwindow.cpp
mainwindow.cpp: In member function ‘void MainWindow::updateTemperatureDataSlot()’:
mainwindow.cpp:242:29: warning: ‘QTextStream& QTextStreamFunctions::endl(QTextStream&)’ is deprecated: Use Qt::endl [-Wdeprecated-declarations]
  242 |         outStreamLogging << endl;
      |                             ^~~~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qdebug.h:49,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCore/QDebug:1,
                 from /usr/include/qcustomplot.h:64,
                 from mainwindow.h:22,
                 from mainwindow.cpp:16:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qtextstream.h:293:75: note: declared here
  293 | Q_CORE_EXPORT QT_DEPRECATED_VERSION_X(5, 15, "Use Qt::endl") QTextStream &endl(QTextStream &s);
      |                                                                           ^~~~
mainwindow.cpp:242:29: warning: ‘QTextStream& QTextStreamFunctions::endl(QTextStream&)’ is deprecated: Use Qt::endl [-Wdeprecated-declarations]
  242 |         outStreamLogging << endl;
      |                             ^~~~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qdebug.h:49,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCore/QDebug:1,
                 from /usr/include/qcustomplot.h:64,
                 from mainwindow.h:22,
                 from mainwindow.cpp:16:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qtextstream.h:293:75: note: declared here
  293 | Q_CORE_EXPORT QT_DEPRECATED_VERSION_X(5, 15, "Use Qt::endl") QTextStream &endl(QTextStream &s);
      |                                                                           ^~~~
mainwindow.cpp: In member function ‘void MainWindow::loadSettings()’:
mainwindow.cpp:302:46: warning: ‘const QRect QDesktopWidget::screenGeometry(int) const’ is deprecated: Use QGuiApplication::screens() [-Wdeprecated-declarations]
  302 |         QRect screen = desktop.screenGeometry();
      |                        ~~~~~~~~~~~~~~~~~~~~~~^~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QDesktopWidget:1,
                 from mainwindow.cpp:15:
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qdesktopwidget.h:79:67: note: declared here
   79 |     QT_DEPRECATED_X("Use QGuiApplication::screens()") const QRect screenGeometry(int screen = -1) const;
      |                                                                   ^~~~~~~~~~~~~~
mainwindow.cpp: In member function ‘void MainWindow::changeLogVariables(bool, bool, QString)’:
mainwindow.cpp:403:70: warning: ‘QTextStream& QTextStreamFunctions::endl(QTextStream&)’ is deprecated: Use Qt::endl [-Wdeprecated-declarations]
  403 |                         << qPrintable(logging_file.errorString()) << endl;
      |                                                                      ^~~~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qdebug.h:49,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCore/QDebug:1,
                 from /usr/include/qcustomplot.h:64,
                 from mainwindow.h:22,
                 from mainwindow.cpp:16:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qtextstream.h:293:75: note: declared here
  293 | Q_CORE_EXPORT QT_DEPRECATED_VERSION_X(5, 15, "Use Qt::endl") QTextStream &endl(QTextStream &s);
      |                                                                           ^~~~
mainwindow.cpp:403:70: warning: ‘QTextStream& QTextStreamFunctions::endl(QTextStream&)’ is deprecated: Use Qt::endl [-Wdeprecated-declarations]
  403 |                         << qPrintable(logging_file.errorString()) << endl;
      |                                                                      ^~~~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qdebug.h:49,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCore/QDebug:1,
                 from /usr/include/qcustomplot.h:64,
                 from mainwindow.h:22,
                 from mainwindow.cpp:16:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qtextstream.h:293:75: note: declared here
  293 | Q_CORE_EXPORT QT_DEPRECATED_VERSION_X(5, 15, "Use Qt::endl") QTextStream &endl(QTextStream &s);
      |                                                                           ^~~~
mainwindow.cpp:414:29: warning: ‘QTextStream& QTextStreamFunctions::endl(QTextStream&)’ is deprecated: Use Qt::endl [-Wdeprecated-declarations]
  414 |         outStreamLogging << endl;
      |                             ^~~~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qdebug.h:49,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCore/QDebug:1,
                 from /usr/include/qcustomplot.h:64,
                 from mainwindow.h:22,
                 from mainwindow.cpp:16:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qtextstream.h:293:75: note: declared here
  293 | Q_CORE_EXPORT QT_DEPRECATED_VERSION_X(5, 15, "Use Qt::endl") QTextStream &endl(QTextStream &s);
      |                                                                           ^~~~
mainwindow.cpp:414:29: warning: ‘QTextStream& QTextStreamFunctions::endl(QTextStream&)’ is deprecated: Use Qt::endl [-Wdeprecated-declarations]
  414 |         outStreamLogging << endl;
      |                             ^~~~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qdebug.h:49,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCore/QDebug:1,
                 from /usr/include/qcustomplot.h:64,
                 from mainwindow.h:22,
                 from mainwindow.cpp:16:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qtextstream.h:293:75: note: declared here
  293 | Q_CORE_EXPORT QT_DEPRECATED_VERSION_X(5, 15, "Use Qt::endl") QTextStream &endl(QTextStream &s);
      |                                                                           ^~~~
g++ -c -pipe -O2 -Wall -Wextra -D_REENTRANT -fPIC -DQT_NO_DEBUG_OUTPUT -DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -I. -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtPrintSupport -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtDBus -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I. -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o tripsdialog.o tripsdialog.cpp
tripsdialog.cpp: In member function ‘void tripsDialog::on_treeWidget_clicked(const QModelIndex&)’:
tripsdialog.cpp:128:50: warning: ‘QModelIndex QModelIndex::child(int, int) const’ is deprecated: Use QAbstractItemModel::index [-Wdeprecated-declarations]
  128 |                              index.parent().child(trip, col + 1).data().toString()
      |                              ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/QtCore:10,
                 from /usr/include/x86_64-linux-gnu/qt5/QtDBus/QtDBusDepends:3,
                 from /usr/include/x86_64-linux-gnu/qt5/QtDBus/QtDBus:3,
                 from thermaldinterface.h:19,
                 from tripsdialog.h:5,
                 from tripsdialog.cpp:1:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qabstractitemmodel.h:455:20: note: declared here
  455 | inline QModelIndex QModelIndex::child(int arow, int acolumn) const
      |                    ^~~~~~~~~~~
spandruvada commented 2 years ago

Retry with the latest. There are Thermal Monitor changes.

pabs3 commented 2 years ago

@spandruvada thanks for the ping, but the deprecation warnings are still present.

spandruvada commented 4 months ago

Try the latest version and reopen if the issue still exists.

pabs3 commented 4 months ago

@spandruvada the warnings still occur:

g++ -c -pipe -O2 -Wall -Wextra -D_REENTRANT -fPIC -DQT_NO_DEBUG_OUTPUT -DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -I. -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtPrintSupport -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtDBus -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I. -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o mainwindow.o mainwindow.cpp
mainwindow.cpp: In member function ‘void MainWindow::updateTemperatureDataSlot()’:
mainwindow.cpp:245:29: warning: ‘QTextStream& QTextStreamFunctions::endl(QTextStream&)’ is deprecated: Use Qt::endl [-Wdeprecated-declarations]
  245 |         outStreamLogging << endl;
      |                             ^~~~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qdebug.h:49,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCore/QDebug:1,
                 from /usr/include/qcustomplot.h:65,
                 from mainwindow.h:22,
                 from mainwindow.cpp:16:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qtextstream.h:293:75: note: declared here
  293 | Q_CORE_EXPORT QT_DEPRECATED_VERSION_X(5, 15, "Use Qt::endl") QTextStream &endl(QTextStream &s);
      |                                                                           ^~~~
mainwindow.cpp: In member function ‘void MainWindow::loadSettings()’:
mainwindow.cpp:305:46: warning: ‘const QRect QDesktopWidget::screenGeometry(int) const’ is deprecated: Use QGuiApplication::screens() [-Wdeprecated-declarations]
  305 |         QRect screen = desktop.screenGeometry();
      |                        ~~~~~~~~~~~~~~~~~~~~~~^~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QDesktopWidget:1,
                 from mainwindow.cpp:15:
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qdesktopwidget.h:79:67: note: declared here
   79 |     QT_DEPRECATED_X("Use QGuiApplication::screens()") const QRect screenGeometry(int screen = -1) const;
      |                                                                   ^~~~~~~~~~~~~~
mainwindow.cpp: In member function ‘void MainWindow::changeLogVariables(bool, bool, QString)’:
mainwindow.cpp:406:70: warning: ‘QTextStream& QTextStreamFunctions::endl(QTextStream&)’ is deprecated: Use Qt::endl [-Wdeprecated-declarations]
  406 |                         << qPrintable(logging_file.errorString()) << endl;
      |                                                                      ^~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qtextstream.h:293:75: note: declared here
  293 | Q_CORE_EXPORT QT_DEPRECATED_VERSION_X(5, 15, "Use Qt::endl") QTextStream &endl(QTextStream &s);
      |                                                                           ^~~~
mainwindow.cpp:417:29: warning: ‘QTextStream& QTextStreamFunctions::endl(QTextStream&)’ is deprecated: Use Qt::endl [-Wdeprecated-declarations]
  417 |         outStreamLogging << endl;
      |                             ^~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qtextstream.h:293:75: note: declared here
  293 | Q_CORE_EXPORT QT_DEPRECATED_VERSION_X(5, 15, "Use Qt::endl") QTextStream &endl(QTextStream &s);
      |                                                                           ^~~~

g++ -c -pipe -O2 -Wall -Wextra -D_REENTRANT -fPIC -DQT_NO_DEBUG_OUTPUT -DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -I. -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtPrintSupport -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtDBus -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I. -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o tripsdialog.o tripsdialog.cpp
tripsdialog.cpp: In member function ‘void tripsDialog::on_treeWidget_clicked(const QModelIndex&)’:
tripsdialog.cpp:128:50: warning: ‘QModelIndex QModelIndex::child(int, int) const’ is deprecated: Use QAbstractItemModel::index [-Wdeprecated-declarations]
  128 |                              index.parent().child(trip, col + 1).data().toString()
      |                              ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/QtCore:10,
                 from /usr/include/x86_64-linux-gnu/qt5/QtDBus/QtDBusDepends:3,
                 from /usr/include/x86_64-linux-gnu/qt5/QtDBus/QtDBus:3,
                 from thermaldinterface.h:19,
                 from tripsdialog.h:5,
                 from tripsdialog.cpp:1:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qabstractitemmodel.h:455:20: note: declared here
  455 | inline QModelIndex QModelIndex::child(int arow, int acolumn) const
      |                    ^~~~~~~~~~~
pabs3 commented 4 months ago

@spandruvada not sure why, but it is not letting me reopen the issue.