Task #1440 - kf6-kcoreaddons-6.0.0-1.fc40/scan-results.err
back to task #1440download
Error: COMPILER_WARNING (CWE-477): kf6-kcoreaddons-6.0.0-build/kcoreaddons-6.0.0/src/lib/text/kstringhandler.cpp: scope_hint: In function ‘QStringList KStringHandler::perlSplit(const QRegularExpression&, const QString&, int)’ kf6-kcoreaddons-6.0.0-build/kcoreaddons-6.0.0/src/lib/text/kstringhandler.cpp:132:65: warning[-Wdeprecated-declarations]: ‘QRegularExpressionMatchIterator QRegularExpression::globalMatch(QStringView, qsizetype, MatchType, MatchOptions) const’ is deprecated: Use globalMatchView instead. # 132 | QRegularExpressionMatchIterator iter = separator.globalMatch(strView); # | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ /usr/include/qt6/QtCore/QRegularExpression:1: included_from: Included from here. kf6-kcoreaddons-6.0.0-build/kcoreaddons-6.0.0/src/lib/text/kstringhandler.cpp:16: included_from: Included from here. /usr/include/qt6/QtCore/qregularexpression.h:118:37: note: declared here # 118 | QRegularExpressionMatchIterator globalMatch(QStringView subjectView, # | ^~~~~~~~~~~ # 130| separator.setPatternOptions(QRegularExpression::UseUnicodePropertiesOption); # 131| # 132|-> QRegularExpressionMatchIterator iter = separator.globalMatch(strView); # 133| QRegularExpressionMatch match; # 134| while (iter.hasNext() && (ignoreMax || list.count() < max - 1)) { Error: COMPILER_WARNING: kf6-kcoreaddons-6.0.0-build/kcoreaddons-6.0.0/src/lib/util/kformatprivate.cpp: scope_hint: In member function ‘QString KFormatPrivate::formatDecimalDuration(quint64, int) const’ kf6-kcoreaddons-6.0.0-build/kcoreaddons-6.0.0/src/lib/util/kformatprivate.cpp:389:72: warning[-Wdeprecated-enum-float-conversion]: arithmetic between enumeration type ‘TimeConstants’ and floating-point type ‘double’ is deprecated # 389 | return tr("%1 days").arg(m_locale.toString(msecs / (MSecsInDay * 1.0), 'f', decimalPlaces)); # | ~~~~~~~~~~~^~~~~ # 387| if (msecs >= MSecsInDay) { # 388| //: @item:intext %1 is a real number, e.g. 1.23 days # 389|-> return tr("%1 days").arg(m_locale.toString(msecs / (MSecsInDay * 1.0), 'f', decimalPlaces)); # 390| } else if (msecs >= MSecsInHour) { # 391| //: @item:intext %1 is a real number, e.g. 1.23 hours Error: COMPILER_WARNING: kf6-kcoreaddons-6.0.0-build/kcoreaddons-6.0.0/src/lib/util/kformatprivate.cpp:392:74: warning[-Wdeprecated-enum-float-conversion]: arithmetic between enumeration type ‘TimeConstants’ and floating-point type ‘double’ is deprecated # 392 | return tr("%1 hours").arg(m_locale.toString(msecs / (MSecsInHour * 1.0), 'f', decimalPlaces)); # | ~~~~~~~~~~~~^~~~~ # 390| } else if (msecs >= MSecsInHour) { # 391| //: @item:intext %1 is a real number, e.g. 1.23 hours # 392|-> return tr("%1 hours").arg(m_locale.toString(msecs / (MSecsInHour * 1.0), 'f', decimalPlaces)); # 393| } else if (msecs >= MSecsInMinute) { # 394| //: @item:intext %1 is a real number, e.g. 1.23 minutes Error: COMPILER_WARNING: kf6-kcoreaddons-6.0.0-build/kcoreaddons-6.0.0/src/lib/util/kformatprivate.cpp:395:78: warning[-Wdeprecated-enum-float-conversion]: arithmetic between enumeration type ‘TimeConstants’ and floating-point type ‘double’ is deprecated # 395 | return tr("%1 minutes").arg(m_locale.toString(msecs / (MSecsInMinute * 1.0), 'f', decimalPlaces)); # | ~~~~~~~~~~~~~~^~~~~ # 393| } else if (msecs >= MSecsInMinute) { # 394| //: @item:intext %1 is a real number, e.g. 1.23 minutes # 395|-> return tr("%1 minutes").arg(m_locale.toString(msecs / (MSecsInMinute * 1.0), 'f', decimalPlaces)); # 396| } else if (msecs >= MSecsInSecond) { # 397| //: @item:intext %1 is a real number, e.g. 1.23 seconds Error: COMPILER_WARNING: kf6-kcoreaddons-6.0.0-build/kcoreaddons-6.0.0/src/lib/util/kformatprivate.cpp:398:78: warning[-Wdeprecated-enum-float-conversion]: arithmetic between enumeration type ‘TimeConstants’ and floating-point type ‘double’ is deprecated # 398 | return tr("%1 seconds").arg(m_locale.toString(msecs / (MSecsInSecond * 1.0), 'f', decimalPlaces)); # | ~~~~~~~~~~~~~~^~~~~ # 396| } else if (msecs >= MSecsInSecond) { # 397| //: @item:intext %1 is a real number, e.g. 1.23 seconds # 398|-> return tr("%1 seconds").arg(m_locale.toString(msecs / (MSecsInSecond * 1.0), 'f', decimalPlaces)); # 399| } # 400| //: @item:intext %1 is a whole number