-Werror prevents compilation
https://gitlab.com/accounts-sso/signon-plugin-oauth2/-/blob/master/common-project-config.pri#L23 sets -Werror
, making gcc treat every warning as an error. This is nice for development to make sure your code doesn't cause any warnings, but the last release (0.25) is actually full of warnings which then block the build. I had to disable -Werror
for Alpine Linux packaging to get it to build.
Please either fix the warnings or stop settings -Werror
, the former being preferable of course
oauth1plugin.cpp: In member function 'void OAuth2PluginNS::OAuth1Plugin::sendOAuth1AuthRequest()':
oauth1plugin.cpp:149:51: error: 'void QUrl::addQueryItem(const QString&, const QString&)' is deprecated [-Werror=deprecated-declarations]
149 | url.addQueryItem(OAUTH_TOKEN, d->m_oauth1Token);
| ^
In file included from /usr/include/QtCore/qurl.h:421,
from /usr/include/QtCore/qcborvalue.h:51,
from /usr/include/QtCore/qcborarray.h:43,
from /usr/include/QtCore/QtCore:38,
from oauth1plugin.h:27,
from oauth1plugin.cpp:26:
/usr/include/QtCore/qurlquery.h:124:13: note: declared here
124 | inline void QUrl::addQueryItem(const QString &key, const QString &value)
| ^~~~
oauth1plugin.cpp:152:60: error: 'void QUrl::addQueryItem(const QString&, const QString&)' is deprecated [-Werror=deprecated-declarations]
152 | url.addQueryItem(SCREEN_NAME, d->m_oauth1ScreenName);
| ^
In file included from /usr/include/QtCore/qurl.h:421,
from /usr/include/QtCore/qcborvalue.h:51,
from /usr/include/QtCore/qcborarray.h:43,
from /usr/include/QtCore/QtCore:38,
from oauth1plugin.h:27,
from oauth1plugin.cpp:26:
/usr/include/QtCore/qurlquery.h:124:13: note: declared here
124 | inline void QUrl::addQueryItem(const QString &key, const QString &value)
| ^~~~
oauth1plugin.cpp:153:60: error: 'void QUrl::addQueryItem(const QString&, const QString&)' is deprecated [-Werror=deprecated-declarations]
153 | url.addQueryItem(FORCE_LOGIN, d->m_oauth1ScreenName);
| ^
In file included from /usr/include/QtCore/qurl.h:421,
from /usr/include/QtCore/qcborvalue.h:51,
from /usr/include/QtCore/qcborarray.h:43,
from /usr/include/QtCore/QtCore:38,
from oauth1plugin.h:27,
from oauth1plugin.cpp:26:
/usr/include/QtCore/qurlquery.h:124:13: note: declared here
124 | inline void QUrl::addQueryItem(const QString &key, const QString &value)
| ^~~~
oauth1plugin.cpp: In member function 'QByteArray OAuth2PluginNS::OAuth1Plugin::constructSignatureBaseString(const QString&, const OAuth2PluginNS::OAuth1PluginData&, const QString&, const QString&)':
oauth1plugin.cpp:370:69: error: 'QList<QPair<QString, QString> > QUrl::queryItems() const' is deprecated [-Werror=deprecated-declarations]
370 | QList<QPair<QString, QString> > queryItems = fullUrl.queryItems();
| ^
In file included from /usr/include/QtCore/qurl.h:421,
from /usr/include/QtCore/qcborvalue.h:51,
from /usr/include/QtCore/qcborarray.h:43,
from /usr/include/QtCore/QtCore:38,
from oauth1plugin.h:27,
from oauth1plugin.cpp:26:
/usr/include/QtCore/qurlquery.h:126:40: note: declared here
126 | inline QList<QPair<QString, QString> > QUrl::queryItems() const
| ^~~~
oauth2plugin.cpp: In member function 'void OAuth2PluginNS::OAuth2Plugin::sendOAuth2AuthRequest()':
oauth2plugin.cpp:178:59: error: 'void QUrl::addQueryItem(const QString&, const QString&)' is deprecated [-Werror=deprecated-declarations]
178 | url.addQueryItem(CLIENT_ID, d->m_oauth2Data.ClientId());
| ^
In file included from /usr/include/QtCore/qurl.h:421,
from /usr/include/QtCore/qcborvalue.h:51,
from /usr/include/QtCore/qcborarray.h:43,
from /usr/include/QtCore/QtCore:38,
from oauth2plugin.h:27,
from oauth2plugin.cpp:25:
/usr/include/QtCore/qurlquery.h:124:13: note: declared here
124 | inline void QUrl::addQueryItem(const QString &key, const QString &value)
| ^~~~
oauth2plugin.cpp:180:72: error: 'void QUrl::addQueryItem(const QString&, const QString&)' is deprecated [-Werror=deprecated-declarations]
180 | url.addQueryItem(REDIRECT_URI, QUrl::toPercentEncoding(redirectUri));
| ^
In file included from /usr/include/QtCore/qurl.h:421,
from /usr/include/QtCore/qcborvalue.h:51,
from /usr/include/QtCore/qcborarray.h:43,
from /usr/include/QtCore/QtCore:38,
from oauth2plugin.h:27,
from oauth2plugin.cpp:25:
/usr/include/QtCore/qurlquery.h:124:13: note: declared here
124 | inline void QUrl::addQueryItem(const QString &key, const QString &value)
| ^~~~
oauth2plugin.cpp:183:43: error: 'void QUrl::addQueryItem(const QString&, const QString&)' is deprecated [-Werror=deprecated-declarations]
183 | url.addQueryItem(STATE, d->m_state);
| ^
In file included from /usr/include/QtCore/qurl.h:421,
from /usr/include/QtCore/qcborvalue.h:51,
from /usr/include/QtCore/qcborarray.h:43,
from /usr/include/QtCore/QtCore:38,
from oauth2plugin.h:27,
from oauth2plugin.cpp:25:
/usr/include/QtCore/qurlquery.h:124:13: note: declared here
124 | inline void QUrl::addQueryItem(const QString &key, const QString &value)
| ^~~~
oauth2plugin.cpp:187:63: error: 'void QUrl::addQueryItem(const QString&, const QString&)' is deprecated [-Werror=deprecated-declarations]
187 | url.addQueryItem(RESPONSE_TYPE, responseType.join(" "));
| ^
In file included from /usr/include/QtCore/qurl.h:421,
from /usr/include/QtCore/qcborvalue.h:51,
from /usr/include/QtCore/qcborarray.h:43,
from /usr/include/QtCore/QtCore:38,
from oauth2plugin.h:27,
from oauth2plugin.cpp:25:
/usr/include/QtCore/qurlquery.h:124:13: note: declared here
124 | inline void QUrl::addQueryItem(const QString &key, const QString &value)
| ^~~~
oauth2plugin.cpp:192:74: error: 'void QUrl::addQueryItem(const QString&, const QString&)' is deprecated [-Werror=deprecated-declarations]
192 | url.addQueryItem(SCOPE, QUrl::toPercentEncoding(scopes.join(" ")));
| ^
In file included from /usr/include/QtCore/qurl.h:421,
from /usr/include/QtCore/qcborvalue.h:51,
from /usr/include/QtCore/qcborarray.h:43,
from /usr/include/QtCore/QtCore:38,
from oauth2plugin.h:27,
from oauth2plugin.cpp:25:
/usr/include/QtCore/qurlquery.h:124:13: note: declared here
124 | inline void QUrl::addQueryItem(const QString &key, const QString &value)
| ^~~~
oauth2plugin.cpp: In member function 'bool OAuth2PluginNS::OAuth2Plugin::respondWithStoredToken(const QVariantMap&, const QStringList&)':
oauth2plugin.cpp:252:54: error: 'QSet<T> QList<T>::toSet() const [with T = QString]' is deprecated: Use QSet<T>(list.begin(), list.end()) instead. [-Werror=deprecated-declarations]
252 | token.value(SCOPES).toStringList().toSet();
| ^
In file included from /usr/include/QtCore/qobject.h:49,
from /usr/include/QtCore/qabstractanimation.h:43,
from /usr/include/QtCore/QtCore:6,
from oauth2plugin.h:27,
from oauth2plugin.cpp:25:
/usr/include/QtCore/qlist.h:413:13: note: declared here
413 | QSet<T> toSet() const;
| ^~~~~
oauth2plugin.cpp:253:49: error: 'QSet<T> QList<T>::toSet() const [with T = QString]' is deprecated: Use QSet<T>(list.begin(), list.end()) instead. [-Werror=deprecated-declarations]
253 | if (!cachedScopes.contains(scopes.toSet())) return false;
| ^
In file included from /usr/include/QtCore/qdebug.h:52,
from /usr/include/QtCore/qcborcommon.h:45,
from /usr/include/QtCore/qcborvalue.h:45,
from /usr/include/QtCore/qcborarray.h:43,
from /usr/include/QtCore/QtCore:38,
from oauth2plugin.h:27,
from oauth2plugin.cpp:25:
/usr/include/QtCore/qset.h:406:30: note: declared here
406 | Q_OUTOFLINE_TEMPLATE QSet<T> QList<T>::toSet() const
| ^~~~~~~~
oauth1plugin.cpp: In member function 'virtual void OAuth2PluginNS::OAuth1Plugin::userActionFinished(const SignOn::UiSessionData&)':
oauth1plugin.cpp:504:36: error: 'bool QUrl::hasQueryItem(const QString&) const' is deprecated [-Werror=deprecated-declarations]
504 | if (url.hasQueryItem(AUTH_ERROR)) {
| ^
In file included from /usr/include/QtCore/qurl.h:421,
from /usr/include/QtCore/qcborvalue.h:51,
from /usr/include/QtCore/qcborarray.h:43,
from /usr/include/QtCore/QtCore:38,
from oauth1plugin.h:27,
from oauth1plugin.cpp:26:
/usr/include/QtCore/qurlquery.h:128:13: note: declared here
128 | inline bool QUrl::hasQueryItem(const QString &key) const
| ^~~~
oauth1plugin.cpp:506:77: error: 'QString QUrl::queryItemValue(const QString&) const' is deprecated [-Werror=deprecated-declarations]
506 | emit error(Error(Error::NotAuthorized, url.queryItemValue(AUTH_ERROR)));
| ^
In file included from /usr/include/QtCore/qurl.h:421,
from /usr/include/QtCore/qcborvalue.h:51,
from /usr/include/QtCore/qcborarray.h:43,
from /usr/include/QtCore/QtCore:38,
from oauth1plugin.h:27,
from oauth1plugin.cpp:26:
/usr/include/QtCore/qurlquery.h:130:16: note: declared here
130 | inline QString QUrl::queryItemValue(const QString &key) const
| ^~~~
oauth1plugin.cpp:510:40: error: 'bool QUrl::hasQueryItem(const QString&) const' is deprecated [-Werror=deprecated-declarations]
510 | if (url.hasQueryItem(OAUTH_VERIFIER)) {
| ^
In file included from /usr/include/QtCore/qurl.h:421,
from /usr/include/QtCore/qcborvalue.h:51,
from /usr/include/QtCore/qcborarray.h:43,
from /usr/include/QtCore/QtCore:38,
from oauth1plugin.h:27,
from oauth1plugin.cpp:26:
/usr/include/QtCore/qurlquery.h:128:13: note: declared here
128 | inline bool QUrl::hasQueryItem(const QString &key) const
| ^~~~
oauth1plugin.cpp:511:69: error: 'QString QUrl::queryItemValue(const QString&) const' is deprecated [-Werror=deprecated-declarations]
511 | d->m_oauth1TokenVerifier = url.queryItemValue(OAUTH_VERIFIER);
| ^
In file included from /usr/include/QtCore/qurl.h:421,
from /usr/include/QtCore/qcborvalue.h:51,
from /usr/include/QtCore/qcborarray.h:43,
from /usr/include/QtCore/QtCore:38,
from oauth1plugin.h:27,
from oauth1plugin.cpp:26:
/usr/include/QtCore/qurlquery.h:130:16: note: declared here
130 | inline QString QUrl::queryItemValue(const QString &key) const
| ^~~~
oauth1plugin.cpp:516:44: error: 'bool QUrl::hasQueryItem(const QString&) const' is deprecated [-Werror=deprecated-declarations]
516 | else if (url.hasQueryItem(OAUTH_PROBLEM)) {
| ^
In file included from /usr/include/QtCore/qurl.h:421,
from /usr/include/QtCore/qcborvalue.h:51,
from /usr/include/QtCore/qcborarray.h:43,
from /usr/include/QtCore/QtCore:38,
from oauth1plugin.h:27,
from oauth1plugin.cpp:26:
/usr/include/QtCore/qurlquery.h:128:13: note: declared here
128 | inline bool QUrl::hasQueryItem(const QString &key) const
| ^~~~
oauth1plugin.cpp:517:66: error: 'QString QUrl::queryItemValue(const QString&) const' is deprecated [-Werror=deprecated-declarations]
517 | handleOAuth1ProblemError(url.queryItemValue(OAUTH_PROBLEM));
| ^
In file included from /usr/include/QtCore/qurl.h:421,
from /usr/include/QtCore/qcborvalue.h:51,
from /usr/include/QtCore/qcborarray.h:43,
from /usr/include/QtCore/QtCore:38,
from oauth1plugin.h:27,
from oauth1plugin.cpp:26:
/usr/include/QtCore/qurlquery.h:130:16: note: declared here
130 | inline QString QUrl::queryItemValue(const QString &key) const
| ^~~~
oauth2plugin.cpp: In member function 'virtual void OAuth2PluginNS::OAuth2Plugin::userActionFinished(const SignOn::UiSessionData&)':
oauth2plugin.cpp:403:36: error: 'bool QUrl::hasQueryItem(const QString&) const' is deprecated [-Werror=deprecated-declarations]
403 | if (url.hasQueryItem(AUTH_ERROR)) {
| ^
In file included from /usr/include/QtCore/qurl.h:421,
from /usr/include/QtCore/qcborvalue.h:51,
from /usr/include/QtCore/qcborarray.h:43,
from /usr/include/QtCore/QtCore:38,
from oauth2plugin.h:27,
from oauth2plugin.cpp:25:
/usr/include/QtCore/qurlquery.h:128:13: note: declared here
128 | inline bool QUrl::hasQueryItem(const QString &key) const
| ^~~~
oauth2plugin.cpp:405:77: error: 'QString QUrl::queryItemValue(const QString&) const' is deprecated [-Werror=deprecated-declarations]
405 | emit error(Error(Error::NotAuthorized, url.queryItemValue(AUTH_ERROR)));
| ^
In file included from /usr/include/QtCore/qurl.h:421,
from /usr/include/QtCore/qcborvalue.h:51,
from /usr/include/QtCore/qcborarray.h:43,
from /usr/include/QtCore/QtCore:38,
from oauth2plugin.h:27,
from oauth2plugin.cpp:25:
/usr/include/QtCore/qurlquery.h:130:16: note: declared here
130 | inline QString QUrl::queryItemValue(const QString &key) const
| ^~~~
oauth2plugin.cpp:466:39: error: 'bool QUrl::hasQueryItem(const QString&) const' is deprecated [-Werror=deprecated-declarations]
466 | if (url.hasQueryItem(AUTH_CODE)) {
| ^
In file included from /usr/include/QtCore/qurl.h:421,
from /usr/include/QtCore/qcborvalue.h:51,
from /usr/include/QtCore/qcborarray.h:43,
from /usr/include/QtCore/QtCore:38,
from oauth2plugin.h:27,
from oauth2plugin.cpp:25:
/usr/include/QtCore/qurlquery.h:128:13: note: declared here
128 | inline bool QUrl::hasQueryItem(const QString &key) const
| ^~~~
oauth2plugin.cpp:468:55: error: 'QString QUrl::queryItemValue(const QString&) const' is deprecated [-Werror=deprecated-declarations]
468 | d->m_state != url.queryItemValue(STATE)) {
| ^
In file included from /usr/include/QtCore/qurl.h:421,
from /usr/include/QtCore/qcborvalue.h:51,
from /usr/include/QtCore/qcborarray.h:43,
from /usr/include/QtCore/QtCore:38,
from oauth2plugin.h:27,
from oauth2plugin.cpp:25:
/usr/include/QtCore/qurlquery.h:130:16: note: declared here
130 | inline QString QUrl::queryItemValue(const QString &key) const
| ^~~~
oauth2plugin.cpp:473:56: error: 'QString QUrl::queryItemValue(const QString&) const' is deprecated [-Werror=deprecated-declarations]
473 | QString code = url.queryItemValue(AUTH_CODE);
| ^
In file included from /usr/include/QtCore/qurl.h:421,
from /usr/include/QtCore/qcborvalue.h:51,
from /usr/include/QtCore/qcborarray.h:43,
from /usr/include/QtCore/QtCore:38,
from oauth2plugin.h:27,
from oauth2plugin.cpp:25:
/usr/include/QtCore/qurlquery.h:130:16: note: declared here
130 | inline QString QUrl::queryItemValue(const QString &key) const
| ^~~~
oauth2plugin.cpp:474:63: error: 'void QUrl::addQueryItem(const QString&, const QString&)' is deprecated [-Werror=deprecated-declarations]
474 | newUrl.addQueryItem(GRANT_TYPE, AUTHORIZATION_CODE);
| ^
In file included from /usr/include/QtCore/qurl.h:421,
from /usr/include/QtCore/qcborvalue.h:51,
from /usr/include/QtCore/qcborarray.h:43,
from /usr/include/QtCore/QtCore:38,
from oauth2plugin.h:27,
from oauth2plugin.cpp:25:
/usr/include/QtCore/qurlquery.h:124:13: note: declared here
124 | inline void QUrl::addQueryItem(const QString &key, const QString &value)
| ^~~~
oauth2plugin.cpp:475:48: error: 'void QUrl::addQueryItem(const QString&, const QString&)' is deprecated [-Werror=deprecated-declarations]
475 | newUrl.addQueryItem(AUTH_CODE, code);
| ^
In file included from /usr/include/QtCore/qurl.h:421,
from /usr/include/QtCore/qcborvalue.h:51,
from /usr/include/QtCore/qcborarray.h:43,
from /usr/include/QtCore/QtCore:38,
from oauth2plugin.h:27,
from oauth2plugin.cpp:25:
/usr/include/QtCore/qurlquery.h:124:13: note: declared here
124 | inline void QUrl::addQueryItem(const QString &key, const QString &value)
| ^~~~
oauth2plugin.cpp:476:76: error: 'void QUrl::addQueryItem(const QString&, const QString&)' is deprecated [-Werror=deprecated-declarations]
476 | newUrl.addQueryItem(REDIRECT_URI, d->m_oauth2Data.RedirectUri());
| ^
In file included from /usr/include/QtCore/qurl.h:421,
from /usr/include/QtCore/qcborvalue.h:51,
from /usr/include/QtCore/qcborarray.h:43,
from /usr/include/QtCore/QtCore:38,
from oauth2plugin.h:27,
from oauth2plugin.cpp:25:
/usr/include/QtCore/qurlquery.h:124:13: note: declared here
124 | inline void QUrl::addQueryItem(const QString &key, const QString &value)
| ^~~~
oauth2plugin.cpp:480:43: error: 'bool QUrl::hasQueryItem(const QString&) const' is deprecated [-Werror=deprecated-declarations]
480 | else if (url.hasQueryItem(USERNAME) && url.hasQueryItem(PASSWORD)) {
| ^
In file included from /usr/include/QtCore/qurl.h:421,
from /usr/include/QtCore/qcborvalue.h:51,
from /usr/include/QtCore/qcborarray.h:43,
from /usr/include/QtCore/QtCore:38,
from oauth2plugin.h:27,
from oauth2plugin.cpp:25:
/usr/include/QtCore/qurlquery.h:128:13: note: declared here
128 | inline bool QUrl::hasQueryItem(const QString &key) const
| ^~~~
oauth2plugin.cpp:480:73: error: 'bool QUrl::hasQueryItem(const QString&) const' is deprecated [-Werror=deprecated-declarations]
480 | else if (url.hasQueryItem(USERNAME) && url.hasQueryItem(PASSWORD)) {
| ^
In file included from /usr/include/QtCore/qurl.h:421,
from /usr/include/QtCore/qcborvalue.h:51,
from /usr/include/QtCore/qcborarray.h:43,
from /usr/include/QtCore/QtCore:38,
from oauth2plugin.h:27,
from oauth2plugin.cpp:25:
/usr/include/QtCore/qurlquery.h:128:13: note: declared here
128 | inline bool QUrl::hasQueryItem(const QString &key) const
| ^~~~
oauth2plugin.cpp:481:59: error: 'QString QUrl::queryItemValue(const QString&) const' is deprecated [-Werror=deprecated-declarations]
481 | QString username = url.queryItemValue(USERNAME);
| ^
In file included from /usr/include/QtCore/qurl.h:421,
from /usr/include/QtCore/qcborvalue.h:51,
from /usr/include/QtCore/qcborarray.h:43,
from /usr/include/QtCore/QtCore:38,
from oauth2plugin.h:27,
from oauth2plugin.cpp:25:
/usr/include/QtCore/qurlquery.h:130:16: note: declared here
130 | inline QString QUrl::queryItemValue(const QString &key) const
| ^~~~
oauth2plugin.cpp:482:59: error: 'QString QUrl::queryItemValue(const QString&) const' is deprecated [-Werror=deprecated-declarations]
482 | QString password = url.queryItemValue(PASSWORD);
| ^
In file included from /usr/include/QtCore/qurl.h:421,
from /usr/include/QtCore/qcborvalue.h:51,
from /usr/include/QtCore/qcborarray.h:43,
from /usr/include/QtCore/QtCore:38,
from oauth2plugin.h:27,
from oauth2plugin.cpp:25:
/usr/include/QtCore/qurlquery.h:130:16: note: declared here
130 | inline QString QUrl::queryItemValue(const QString &key) const
| ^~~~
oauth2plugin.cpp:483:55: error: 'void QUrl::addQueryItem(const QString&, const QString&)' is deprecated [-Werror=deprecated-declarations]
483 | newUrl.addQueryItem(GRANT_TYPE, USER_BASIC);
| ^
In file included from /usr/include/QtCore/qurl.h:421,
from /usr/include/QtCore/qcborvalue.h:51,
from /usr/include/QtCore/qcborarray.h:43,
from /usr/include/QtCore/QtCore:38,
from oauth2plugin.h:27,
from oauth2plugin.cpp:25:
/usr/include/QtCore/qurlquery.h:124:13: note: declared here
124 | inline void QUrl::addQueryItem(const QString &key, const QString &value)
| ^~~~
oauth2plugin.cpp:484:51: error: 'void QUrl::addQueryItem(const QString&, const QString&)' is deprecated [-Werror=deprecated-declarations]
484 | newUrl.addQueryItem(USERNAME, username);
| ^
In file included from /usr/include/QtCore/qurl.h:421,
from /usr/include/QtCore/qcborvalue.h:51,
from /usr/include/QtCore/qcborarray.h:43,
from /usr/include/QtCore/QtCore:38,
from oauth2plugin.h:27,
from oauth2plugin.cpp:25:
/usr/include/QtCore/qurlquery.h:124:13: note: declared here
124 | inline void QUrl::addQueryItem(const QString &key, const QString &value)
| ^~~~
oauth2plugin.cpp:485:51: error: 'void QUrl::addQueryItem(const QString&, const QString&)' is deprecated [-Werror=deprecated-declarations]
485 | newUrl.addQueryItem(PASSWORD, password);
| ^
In file included from /usr/include/QtCore/qurl.h:421,
from /usr/include/QtCore/qcborvalue.h:51,
from /usr/include/QtCore/qcborarray.h:43,
from /usr/include/QtCore/QtCore:38,
from oauth2plugin.h:27,
from oauth2plugin.cpp:25:
/usr/include/QtCore/qurlquery.h:124:13: note: declared here
124 | inline void QUrl::addQueryItem(const QString &key, const QString &value)
| ^~~~
oauth2plugin.cpp:489:49: error: 'bool QUrl::hasQueryItem(const QString&) const' is deprecated [-Werror=deprecated-declarations]
489 | else if (url.hasQueryItem(ASSERTION_TYPE) && url.hasQueryItem(ASSERTION)) {
| ^
In file included from /usr/include/QtCore/qurl.h:421,
from /usr/include/QtCore/qcborvalue.h:51,
from /usr/include/QtCore/qcborarray.h:43,
from /usr/include/QtCore/QtCore:38,
from oauth2plugin.h:27,
from oauth2plugin.cpp:25:
/usr/include/QtCore/qurlquery.h:128:13: note: declared here
128 | inline bool QUrl::hasQueryItem(const QString &key) const
| ^~~~
oauth2plugin.cpp:489:80: error: 'bool QUrl::hasQueryItem(const QString&) const' is deprecated [-Werror=deprecated-declarations]
489 | else if (url.hasQueryItem(ASSERTION_TYPE) && url.hasQueryItem(ASSERTION)) {
| ^
In file included from /usr/include/QtCore/qurl.h:421,
from /usr/include/QtCore/qcborvalue.h:51,
from /usr/include/QtCore/qcborarray.h:43,
from /usr/include/QtCore/QtCore:38,
from oauth2plugin.h:27,
from oauth2plugin.cpp:25:
/usr/include/QtCore/qurlquery.h:128:13: note: declared here
128 | inline bool QUrl::hasQueryItem(const QString &key) const
| ^~~~
oauth2plugin.cpp:490:71: error: 'QString QUrl::queryItemValue(const QString&) const' is deprecated [-Werror=deprecated-declarations]
490 | QString assertion_type = url.queryItemValue(ASSERTION_TYPE);
| ^
In file included from /usr/include/QtCore/qurl.h:421,
from /usr/include/QtCore/qcborvalue.h:51,
from /usr/include/QtCore/qcborarray.h:43,
from /usr/include/QtCore/QtCore:38,
from oauth2plugin.h:27,
from oauth2plugin.cpp:25:
/usr/include/QtCore/qurlquery.h:130:16: note: declared here
130 | inline QString QUrl::queryItemValue(const QString &key) const
| ^~~~
oauth2plugin.cpp:491:61: error: 'QString QUrl::queryItemValue(const QString&) const' is deprecated [-Werror=deprecated-declarations]
491 | QString assertion = url.queryItemValue(ASSERTION);
| ^
In file included from /usr/include/QtCore/qurl.h:421,
from /usr/include/QtCore/qcborvalue.h:51,
from /usr/include/QtCore/qcborarray.h:43,
from /usr/include/QtCore/QtCore:38,
from oauth2plugin.h:27,
from oauth2plugin.cpp:25:
/usr/include/QtCore/qurlquery.h:130:16: note: declared here
130 | inline QString QUrl::queryItemValue(const QString &key) const
| ^~~~
oauth2plugin.cpp:492:54: error: 'void QUrl::addQueryItem(const QString&, const QString&)' is deprecated [-Werror=deprecated-declarations]
492 | newUrl.addQueryItem(GRANT_TYPE, ASSERTION);
| ^
In file included from /usr/include/QtCore/qurl.h:421,
from /usr/include/QtCore/qcborvalue.h:51,
from /usr/include/QtCore/qcborarray.h:43,
from /usr/include/QtCore/QtCore:38,
from oauth2plugin.h:27,
from oauth2plugin.cpp:25:
/usr/include/QtCore/qurlquery.h:124:13: note: declared here
124 | inline void QUrl::addQueryItem(const QString &key, const QString &value)
| ^~~~
oauth2plugin.cpp:493:63: error: 'void QUrl::addQueryItem(const QString&, const QString&)' is deprecated [-Werror=deprecated-declarations]
493 | newUrl.addQueryItem(ASSERTION_TYPE, assertion_type);
| ^
In file included from /usr/include/QtCore/qurl.h:421,
from /usr/include/QtCore/qcborvalue.h:51,
from /usr/include/QtCore/qcborarray.h:43,
from /usr/include/QtCore/QtCore:38,
from oauth2plugin.h:27,
from oauth2plugin.cpp:25:
/usr/include/QtCore/qurlquery.h:124:13: note: declared here
124 | inline void QUrl::addQueryItem(const QString &key, const QString &value)
| ^~~~
oauth2plugin.cpp:494:53: error: 'void QUrl::addQueryItem(const QString&, const QString&)' is deprecated [-Werror=deprecated-declarations]
494 | newUrl.addQueryItem(ASSERTION, assertion);
| ^
In file included from /usr/include/QtCore/qurl.h:421,
from /usr/include/QtCore/qcborvalue.h:51,
from /usr/include/QtCore/qcborarray.h:43,
from /usr/include/QtCore/QtCore:38,
from oauth2plugin.h:27,
from oauth2plugin.cpp:25:
/usr/include/QtCore/qurlquery.h:124:13: note: declared here
124 | inline void QUrl::addQueryItem(const QString &key, const QString &value)
| ^~~~
oauth2plugin.cpp:498:48: error: 'bool QUrl::hasQueryItem(const QString&) const' is deprecated [-Werror=deprecated-declarations]
498 | else if (url.hasQueryItem(REFRESH_TOKEN)) {
| ^
In file included from /usr/include/QtCore/qurl.h:421,
from /usr/include/QtCore/qcborvalue.h:51,
from /usr/include/QtCore/qcborarray.h:43,
from /usr/include/QtCore/QtCore:38,
from oauth2plugin.h:27,
from oauth2plugin.cpp:25:
/usr/include/QtCore/qurlquery.h:128:13: note: declared here
128 | inline bool QUrl::hasQueryItem(const QString &key) const
| ^~~~
oauth2plugin.cpp:499:69: error: 'QString QUrl::queryItemValue(const QString&) const' is deprecated [-Werror=deprecated-declarations]
499 | QString refresh_token = url.queryItemValue(REFRESH_TOKEN);
| ^
In file included from /usr/include/QtCore/qurl.h:421,
from /usr/include/QtCore/qcborvalue.h:51,
from /usr/include/QtCore/qcborarray.h:43,
from /usr/include/QtCore/QtCore:38,
from oauth2plugin.h:27,
from oauth2plugin.cpp:25:
/usr/include/QtCore/qurlquery.h:130:16: note: declared here
130 | inline QString QUrl::queryItemValue(const QString &key) const
| ^~~~
oauth2plugin.cpp: In member function 'void OAuth2PluginNS::OAuth2Plugin::refreshOAuth2Token(const QString&)':
oauth2plugin.cpp:692:47: error: 'void QUrl::addQueryItem(const QString&, const QString&)' is deprecated [-Werror=deprecated-declarations]
692 | url.addQueryItem(GRANT_TYPE, REFRESH_TOKEN);
| ^
In file included from /usr/include/QtCore/qurl.h:421,
from /usr/include/QtCore/qcborvalue.h:51,
from /usr/include/QtCore/qcborarray.h:43,
from /usr/include/QtCore/QtCore:38,
from oauth2plugin.h:27,
from oauth2plugin.cpp:25:
/usr/include/QtCore/qurlquery.h:124:13: note: declared here
124 | inline void QUrl::addQueryItem(const QString &key, const QString &value)
| ^~~~
oauth2plugin.cpp:693:49: error: 'void QUrl::addQueryItem(const QString&, const QString&)' is deprecated [-Werror=deprecated-declarations]
693 | url.addQueryItem(REFRESH_TOKEN, refreshToken);
| ^
In file included from /usr/include/QtCore/qurl.h:421,
from /usr/include/QtCore/qcborvalue.h:51,
from /usr/include/QtCore/qcborarray.h:43,
from /usr/include/QtCore/QtCore:38,
from oauth2plugin.h:27,
from oauth2plugin.cpp:25:
/usr/include/QtCore/qurlquery.h:124:13: note: declared here
124 | inline void QUrl::addQueryItem(const QString &key, const QString &value)
| ^~~~
oauth2plugin.cpp: In member function 'void OAuth2PluginNS::OAuth2Plugin::sendOAuth2PostRequest(QUrl&, OAuth2PluginNS::GrantType::e)':
oauth2plugin.cpp:713:72: error: 'void QUrl::addQueryItem(const QString&, const QString&)' is deprecated [-Werror=deprecated-declarations]
713 | postData.addQueryItem(CLIENT_ID, d->m_oauth2Data.ClientId());
| ^
In file included from /usr/include/QtCore/qurl.h:421,
from /usr/include/QtCore/qcborvalue.h:51,
from /usr/include/QtCore/qcborarray.h:43,
from /usr/include/QtCore/QtCore:38,
from oauth2plugin.h:27,
from oauth2plugin.cpp:25:
/usr/include/QtCore/qurlquery.h:124:13: note: declared here
124 | inline void QUrl::addQueryItem(const QString &key, const QString &value)
| ^~~~
oauth2plugin.cpp:714:80: error: 'void QUrl::addQueryItem(const QString&, const QString&)' is deprecated [-Werror=deprecated-declarations]
714 | postData.addQueryItem(CLIENT_SECRET, d->m_oauth2Data.ClientSecret());
| ^
In file included from /usr/include/QtCore/qurl.h:421,
from /usr/include/QtCore/qcborvalue.h:51,
from /usr/include/QtCore/qcborarray.h:43,
from /usr/include/QtCore/QtCore:38,
from oauth2plugin.h:27,
from oauth2plugin.cpp:25:
/usr/include/QtCore/qurlquery.h:124:13: note: declared here
124 | inline void QUrl::addQueryItem(const QString &key, const QString &value)
| ^~~~
oauth2plugin.cpp:724:68: error: 'void QUrl::addQueryItem(const QString&, const QString&)' is deprecated [-Werror=deprecated-declarations]
724 | postData.addQueryItem(CLIENT_ID, d->m_oauth2Data.ClientId());
| ^
In file included from /usr/include/QtCore/qurl.h:421,
from /usr/include/QtCore/qcborvalue.h:51,
from /usr/include/QtCore/qcborarray.h:43,
from /usr/include/QtCore/QtCore:38,
from oauth2plugin.h:27,
from oauth2plugin.cpp:25:
/usr/include/QtCore/qurlquery.h:124:13: note: declared here
124 | inline void QUrl::addQueryItem(const QString &key, const QString &value)
| ^~~~
oauth2plugin.cpp:730:48: error: 'QByteArray QUrl::encodedQuery() const' is deprecated [-Werror=deprecated-declarations]
730 | postRequest(request, postData.encodedQuery());
| ^
In file included from /usr/include/QtCore/qcborvalue.h:51,
from /usr/include/QtCore/qcborarray.h:43,
from /usr/include/QtCore/QtCore:38,
from oauth2plugin.h:27,
from oauth2plugin.cpp:25:
/usr/include/QtCore/qurl.h:334:30: note: declared here
334 | QT_DEPRECATED QByteArray encodedQuery() const
| ^~~~~~~~~~~~
cc1plus: all warnings being treated as errors