OtterBrowser / otter-browser

Otter Browser aims to recreate the best aspects of the classic Opera (12.x) UI using Qt5
https://otter-browser.org
GNU General Public License v3.0
1.79k stars 272 forks source link

Warnings while building #1766

Open beastie1 opened 2 months ago

beastie1 commented 2 months ago

OS: FreeBSD Qt: 5.15 Otter: today's MASTER

[ 28%] Building CXX object CMakeFiles/otter-browser.dir/src/core/CookieJar.cpp.o
/tmp/otter-browser-master/src/core/CookieJar.cpp:373:31: warning: 'topLevelDomain' is deprecated [-Wdeprecated-declarations]
        const QString firstTld(first.topLevelDomain());
                                     ^
/usr/local/include/qt5/QtCore/qurl.h:238:5: note: 'topLevelDomain' has been explicitly marked deprecated here
    QT_DEPRECATED QString topLevelDomain(ComponentFormattingOptions options = FullyDecoded) const;
    ^
/usr/local/include/qt5/QtCore/qglobal.h:292:25: note: expanded from macro 'QT_DEPRECATED'
#  define QT_DEPRECATED Q_DECL_DEPRECATED
                        ^
/usr/local/include/qt5/QtCore/qcompilerdetection.h:236:45: note: expanded from macro 'Q_DECL_DEPRECATED'
#  define Q_DECL_DEPRECATED __attribute__ ((__deprecated__))
                                            ^
/tmp/otter-browser-master/src/core/CookieJar.cpp:374:33: warning: 'topLevelDomain' is deprecated [-Wdeprecated-declarations]
        const QString secondTld(second.topLevelDomain());
                                       ^
/usr/local/include/qt5/QtCore/qurl.h:238:5: note: 'topLevelDomain' has been explicitly marked deprecated here
    QT_DEPRECATED QString topLevelDomain(ComponentFormattingOptions options = FullyDecoded) const;
    ^
/usr/local/include/qt5/QtCore/qglobal.h:292:25: note: expanded from macro 'QT_DEPRECATED'
#  define QT_DEPRECATED Q_DECL_DEPRECATED
                        ^
/usr/local/include/qt5/QtCore/qcompilerdetection.h:236:45: note: expanded from macro 'Q_DECL_DEPRECATED'
#  define Q_DECL_DEPRECATED __attribute__ ((__deprecated__))
                                            ^
2 warnings generated.

[...]

/tmp/otter-browser-master/src/core/NetworkManager.cpp:74:4: warning: 'setNetworkAccessible' is deprecated [-Wdeprecated-declarations]
                        setNetworkAccessible(QNetworkAccessManager::Accessible);
                        ^
/usr/local/include/qt5/QtNetwork/qnetworkaccessmanager.h:159:5: note: 'setNetworkAccessible' has been explicitly marked deprecated here
    QT_DEPRECATED_VERSION_5_15 void setNetworkAccessible(NetworkAccessibility accessible);
    ^
/usr/local/include/qt5/QtCore/qglobal.h:377:45: note: expanded from macro 'QT_DEPRECATED_VERSION_5_15'
# define QT_DEPRECATED_VERSION_5_15         QT_DEPRECATED
                                            ^
/usr/local/include/qt5/QtCore/qglobal.h:292:25: note: expanded from macro 'QT_DEPRECATED'
#  define QT_DEPRECATED Q_DECL_DEPRECATED
                        ^
/usr/local/include/qt5/QtCore/qcompilerdetection.h:236:45: note: expanded from macro 'Q_DECL_DEPRECATED'
#  define Q_DECL_DEPRECATED __attribute__ ((__deprecated__))
                                            ^
/tmp/otter-browser-master/src/core/NetworkManager.cpp:74:48: warning: 'Accessible' is deprecated [-Wdeprecated-declarations]
                        setNetworkAccessible(QNetworkAccessManager::Accessible);
                                                                    ^
/usr/local/include/qt5/QtNetwork/qnetworkaccessmanager.h:95:10: note: 'NetworkAccessibility' has been explicitly marked deprecated here
    enum QT_DEPRECATED_NETWORK_API_5_15 NetworkAccessibility {
         ^
/usr/local/include/qt5/QtNetwork/qtnetworkglobal.h:69:40: note: expanded from macro 'QT_DEPRECATED_NETWORK_API_5_15'
#define QT_DEPRECATED_NETWORK_API_5_15 QT_DEPRECATED_VERSION_5_15
                                       ^
/usr/local/include/qt5/QtCore/qglobal.h:377:45: note: expanded from macro 'QT_DEPRECATED_VERSION_5_15'
# define QT_DEPRECATED_VERSION_5_15         QT_DEPRECATED
                                            ^
/usr/local/include/qt5/QtCore/qglobal.h:292:25: note: expanded from macro 'QT_DEPRECATED'
#  define QT_DEPRECATED Q_DECL_DEPRECATED
                        ^
/usr/local/include/qt5/QtCore/qcompilerdetection.h:236:45: note: expanded from macro 'Q_DECL_DEPRECATED'
#  define Q_DECL_DEPRECATED __attribute__ ((__deprecated__))
                                            ^
2 warnings generated.
[ 35%] Building CXX object CMakeFiles/otter-browser.dir/src/core/NetworkManagerFactory.cpp.o
/tmp/otter-browser-master/src/core/NetworkManagerFactory.cpp:224:14: warning: 'QNetworkConfigurationManager' is deprecated [-Wdeprecated-declarations]
        connect(new QNetworkConfigurationManager(this), &QNetworkConfigurationManager::onlineStateChanged, this, &NetworkManagerFactory::onlineStateChanged);
                    ^
/usr/local/include/qt5/QtNetwork/qnetworkconfigmanager.h:59:7: note: 'QNetworkConfigurationManager' has been explicitly marked deprecated here
class QT_DEPRECATED_BEARER_MANAGEMENT Q_NETWORK_EXPORT QNetworkConfigurationManager : public QObject
      ^
/usr/local/include/qt5/QtNetwork/qtnetworkglobal.h:65:41: note: expanded from macro 'QT_DEPRECATED_BEARER_MANAGEMENT'
#define QT_DEPRECATED_BEARER_MANAGEMENT QT_DEPRECATED_VERSION_5_15
                                        ^
/usr/local/include/qt5/QtCore/qglobal.h:377:45: note: expanded from macro 'QT_DEPRECATED_VERSION_5_15'
# define QT_DEPRECATED_VERSION_5_15         QT_DEPRECATED
                                            ^
/usr/local/include/qt5/QtCore/qglobal.h:292:25: note: expanded from macro 'QT_DEPRECATED'
#  define QT_DEPRECATED Q_DECL_DEPRECATED
                        ^
/usr/local/include/qt5/QtCore/qcompilerdetection.h:236:45: note: expanded from macro 'Q_DECL_DEPRECATED'
#  define Q_DECL_DEPRECATED __attribute__ ((__deprecated__))
                                            ^
/tmp/otter-browser-master/src/core/NetworkManagerFactory.cpp:224:79: warning: 'QNetworkConfigurationManager' is deprecated [-Wdeprecated-declarations]
        connect(new QNetworkConfigurationManager(this), &QNetworkConfigurationManager::onlineStateChanged, this, &NetworkManagerFactory::onlineStateChanged);
                                                                                     ^
/usr/local/include/qt5/QtNetwork/qnetworkconfigmanager.h:59:7: note: 'QNetworkConfigurationManager' has been explicitly marked deprecated here
class QT_DEPRECATED_BEARER_MANAGEMENT Q_NETWORK_EXPORT QNetworkConfigurationManager : public QObject
      ^
/usr/local/include/qt5/QtNetwork/qtnetworkglobal.h:65:41: note: expanded from macro 'QT_DEPRECATED_BEARER_MANAGEMENT'
#define QT_DEPRECATED_BEARER_MANAGEMENT QT_DEPRECATED_VERSION_5_15
                                        ^
/usr/local/include/qt5/QtCore/qglobal.h:377:45: note: expanded from macro 'QT_DEPRECATED_VERSION_5_15'
# define QT_DEPRECATED_VERSION_5_15         QT_DEPRECATED
                                            ^
/usr/local/include/qt5/QtCore/qglobal.h:292:25: note: expanded from macro 'QT_DEPRECATED'
#  define QT_DEPRECATED Q_DECL_DEPRECATED
                        ^
/usr/local/include/qt5/QtCore/qcompilerdetection.h:236:45: note: expanded from macro 'Q_DECL_DEPRECATED'
#  define Q_DECL_DEPRECATED __attribute__ ((__deprecated__))
                                            ^
2 warnings generated.
[ 36%] Building CXX object CMakeFiles/otter-browser.dir/src/core/NetworkProxyFactory.cpp.o

[...]

[ 41%] Building CXX object CMakeFiles/otter-browser.dir/src/core/UserScript.cpp.o
/tmp/otter-browser-master/src/core/UserScript.cpp:428:44: warning: 'topLevelDomain' is deprecated [-Wdeprecated-declarations]
                        rule.replace(QLatin1String(".tld"), url.topLevelDomain(), Qt::CaseInsensitive);
                                                                ^
/usr/local/include/qt5/QtCore/qurl.h:238:5: note: 'topLevelDomain' has been explicitly marked deprecated here
    QT_DEPRECATED QString topLevelDomain(ComponentFormattingOptions options = FullyDecoded) const;
    ^
/usr/local/include/qt5/QtCore/qglobal.h:292:25: note: expanded from macro 'QT_DEPRECATED'
#  define QT_DEPRECATED Q_DECL_DEPRECATED
                        ^
/usr/local/include/qt5/QtCore/qcompilerdetection.h:236:45: note: expanded from macro 'Q_DECL_DEPRECATED'
#  define Q_DECL_DEPRECATED __attribute__ ((__deprecated__))
                                            ^
1 warning generated.

[...]

In file included from /tmp/otter-browser-master/src/modules/importers/opml/OpmlImportDataExchanger.cpp:21:
/tmp/otter-browser-master/src/modules/importers/opml/OpmlImportOptionsWidget.h:20:9: warning: 'OTTER_OPMLIMPORTDATAEXCHANGERWIDGET_H' is used as a header guard here, followed by #define of a different macro [-Wheader-guard]
#ifndef OTTER_OPMLIMPORTDATAEXCHANGERWIDGET_H
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/otter-browser-master/src/modules/importers/opml/OpmlImportOptionsWidget.h:21:9: note: 'OTTER_OOPMLIMPORTDATAEXCHANGERWIDGET_H' is defined here; did you mean 'OTTER_OPMLIMPORTDATAEXCHANGERWIDGET_H'?
#define OTTER_OOPMLIMPORTDATAEXCHANGERWIDGET_H
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        OTTER_OPMLIMPORTDATAEXCHANGERWIDGET_H
1 warning generated.
[ 74%] Building CXX object CMakeFiles/otter-browser.dir/src/modules/importers/opml/OpmlImportOptionsWidget.cpp.o
In file included from /tmp/otter-browser-master/src/modules/importers/opml/OpmlImportOptionsWidget.cpp:20:
/tmp/otter-browser-master/src/modules/importers/opml/OpmlImportOptionsWidget.h:20:9: warning: 'OTTER_OPMLIMPORTDATAEXCHANGERWIDGET_H' is used as a header guard here, followed by #define of a different macro [-Wheader-guard]
#ifndef OTTER_OPMLIMPORTDATAEXCHANGERWIDGET_H
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/otter-browser-master/src/modules/importers/opml/OpmlImportOptionsWidget.h:21:9: note: 'OTTER_OOPMLIMPORTDATAEXCHANGERWIDGET_H' is defined here; did you mean 'OTTER_OPMLIMPORTDATAEXCHANGERWIDGET_H'?
#define OTTER_OOPMLIMPORTDATAEXCHANGERWIDGET_H
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        OTTER_OPMLIMPORTDATAEXCHANGERWIDGET_H
1 warning generated.