Error: COMPILER_WARNING (CWE-477): [#def1] qt5-qttools-5.15.15-build/qttools-everywhere-src-5.15.15/examples/help/contextsensitivehelp/helpbrowser.cpp: scope_hint: In member function ‘void HelpBrowser::showHelpForKeyword(const QString&)’ qt5-qttools-5.15.15-build/qttools-everywhere-src-5.15.15/examples/help/contextsensitivehelp/helpbrowser.cpp:73:69: warning[-Wdeprecated-declarations]: ‘QMap<QString, QUrl> QHelpEngineCore::linksForIdentifier(const QString&) const’ is deprecated: Use documentsForIdentifier() instead # 73 | QMap<QString, QUrl> links = m_helpEngine->linksForIdentifier(id); # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ qt5-qttools-5.15.15-build/qttools-everywhere-src-5.15.15/include/QtHelp/qhelpenginecore.h:1: included_from: Included from here. qt5-qttools-5.15.15-build/qttools-everywhere-src-5.15.15/include/QtHelp/QHelpEngineCore:1: included_from: Included from here. qt5-qttools-5.15.15-build/qttools-everywhere-src-5.15.15/examples/help/contextsensitivehelp/helpbrowser.cpp:53: included_from: Included from here. qt5-qttools-5.15.15-build/qttools-everywhere-src-5.15.15/src/assistant/help/qhelpenginecore.h:110:25: note: declared here # 110 | QMap<QString, QUrl> linksForIdentifier(const QString &id) const; # | ^~~~~~~~~~~~~~~~~~ # 71| { # 72| if (m_helpEngine) { # 73|-> QMap<QString, QUrl> links = m_helpEngine->linksForIdentifier(id); # 74| if (links.count()) # 75| setSource(links.constBegin().value()); Error: GCC_ANALYZER_WARNING (CWE-688): [#def2] qt5-qttools-5.15.15-build/qttools-everywhere-src-5.15.15/src/assistant/qcollectiongenerator/main.c: scope_hint: In function ‘main’ qt5-qttools-5.15.15-build/qttools-everywhere-src-5.15.15/src/assistant/qcollectiongenerator/main.c:91:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘newPath’ where non-null expected <built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null # 89| char *newPath = (char *) malloc((maxPathOffset + helpGeneratorNameSize + 1) * sizeof(char)); # 90| // Copy the path # 91|-> memcpy(newPath, argv[0], pathOffset); # 92| // Copy the new name # 93| memcpy(newPath + pathOffset, helpGeneratorName, helpGeneratorNameSize); Error: COMPILER_WARNING: [#def3] qt5-qttools-5.15.15-build/qttools-everywhere-src-5.15.15/src/designer/src/lib/uilib/abstractformbuilder.cpp: scope_hint: In member function ‘void QFormInternal::QAbstractFormBuilder::saveItemViewExtraInfo(const QAbstractItemView*, QFormInternal::DomWidget*, QFormInternal::DomWidget*)’ qt5-qttools-5.15.15-build/qttools-everywhere-src-5.15.15/src/designer/src/lib/uilib/abstractformbuilder.cpp:1958:29: warning[-Wrange-loop-construct]: loop variable ‘realPropertyName’ of type ‘const QString&’ binds to a temporary constructed from type ‘const QLatin1String’ # 1958 | for (const QString &realPropertyName : realPropertyNames) { # | ^~~~~~~~~~~~~~~~ qt5-qttools-5.15.15-build/qttools-everywhere-src-5.15.15/src/designer/src/lib/uilib/abstractformbuilder.cpp:1958:29: note: use non-reference type ‘const QString’ to make the copy explicit or ‘const QLatin1String&’ to prevent copying # 1956| auto viewProperties = ui_widget->elementAttribute(); # 1957| const auto &headerProperties = computeProperties(treeView->header()); # 1958|-> for (const QString &realPropertyName : realPropertyNames) { # 1959| const QString upperPropertyName = realPropertyName.at(0).toUpper() # 1960| + realPropertyName.mid(1); Error: COMPILER_WARNING: [#def4] qt5-qttools-5.15.15-build/qttools-everywhere-src-5.15.15/src/designer/src/lib/uilib/abstractformbuilder.cpp:1980:33: warning[-Wrange-loop-construct]: loop variable ‘realPropertyName’ of type ‘const QString&’ binds to a temporary constructed from type ‘const QLatin1String’ # 1980 | for (const QString &realPropertyName : realPropertyNames) { # | ^~~~~~~~~~~~~~~~ qt5-qttools-5.15.15-build/qttools-everywhere-src-5.15.15/src/designer/src/lib/uilib/abstractformbuilder.cpp:1980:33: note: use non-reference type ‘const QString’ to make the copy explicit or ‘const QLatin1String&’ to prevent copying # 1978| ? computeProperties(tableView->horizontalHeader()) # 1979| : computeProperties(tableView->verticalHeader()); # 1980|-> for (const QString &realPropertyName : realPropertyNames) { # 1981| const QString upperPropertyName = realPropertyName.at(0).toUpper() # 1982| + realPropertyName.mid(1); Error: COMPILER_WARNING: [#def5] qt5-qttools-5.15.15-build/qttools-everywhere-src-5.15.15/src/designer/src/lib/uilib/abstractformbuilder.cpp: scope_hint: In member function ‘void QFormInternal::QAbstractFormBuilder::loadItemViewExtraInfo(QFormInternal::DomWidget*, QAbstractItemView*, QWidget*)’ qt5-qttools-5.15.15-build/qttools-everywhere-src-5.15.15/src/designer/src/lib/uilib/abstractformbuilder.cpp:2336:29: warning[-Wrange-loop-construct]: loop variable ‘realPropertyName’ of type ‘const QString&’ binds to a temporary constructed from type ‘const QLatin1String’ # 2336 | for (const QString &realPropertyName : realPropertyNames) { # | ^~~~~~~~~~~~~~~~ qt5-qttools-5.15.15-build/qttools-everywhere-src-5.15.15/src/designer/src/lib/uilib/abstractformbuilder.cpp:2336:29: note: use non-reference type ‘const QString’ to make the copy explicit or ‘const QLatin1String&’ to prevent copying # 2334| const auto &allAttributes = ui_widget->elementAttribute(); # 2335| QList<DomProperty *> headerProperties; # 2336|-> for (const QString &realPropertyName : realPropertyNames) { # 2337| const QString upperPropertyName = realPropertyName.at(0).toUpper() # 2338| + realPropertyName.mid(1); Error: COMPILER_WARNING: [#def6] qt5-qttools-5.15.15-build/qttools-everywhere-src-5.15.15/src/designer/src/lib/uilib/abstractformbuilder.cpp:2356:33: warning[-Wrange-loop-construct]: loop variable ‘realPropertyName’ of type ‘const QString&’ binds to a temporary constructed from type ‘const QLatin1String’ # 2356 | for (const QString &realPropertyName : realPropertyNames) { # | ^~~~~~~~~~~~~~~~ qt5-qttools-5.15.15-build/qttools-everywhere-src-5.15.15/src/designer/src/lib/uilib/abstractformbuilder.cpp:2356:33: note: use non-reference type ‘const QString’ to make the copy explicit or ‘const QLatin1String&’ to prevent copying # 2354| for (const QString &headerPrefix : headerPrefixes) { # 2355| QList<DomProperty*> headerProperties; # 2356|-> for (const QString &realPropertyName : realPropertyNames) { # 2357| const QString upperPropertyName = realPropertyName.at(0).toUpper() # 2358| + realPropertyName.mid(1); Error: COMPILER_WARNING: [#def7] qt5-qttools-5.15.15-build/qttools-everywhere-src-5.15.15/src/qtpaths/qtpaths.cpp: scope_hint: In function ‘int main(int, char**)’ qt5-qttools-5.15.15-build/qttools-everywhere-src-5.15.15/src/qtpaths/qtpaths.cpp:263:27: warning[-Wdangling-reference]: possibly dangling reference to a temporary # 263 | const StringEnum &location = parseLocationOrError(parser.value(display)); # | ^~~~~~~~ qt5-qttools-5.15.15-build/qttools-everywhere-src-5.15.15/src/qtpaths/qtpaths.cpp:263:58: note: the temporary was destroyed at the end of the full expression ‘parseLocationOrError(QCommandLineParser::value(const QCommandLineOption&) const(display))’ # 263 | const StringEnum &location = parseLocationOrError(parser.value(display)); # | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ # 261| # 262| if (parser.isSet(display)) { # 263|-> const StringEnum &location = parseLocationOrError(parser.value(display)); # 264| QString text = QStandardPaths::displayName(location.enumvalue); # 265| results << location.mapName(text); Error: COMPILER_WARNING: [#def8] qt5-qttools-5.15.15-build/qttools-everywhere-src-5.15.15/src/qtpaths/qtpaths.cpp:269:27: warning[-Wdangling-reference]: possibly dangling reference to a temporary # 269 | const StringEnum &location = parseLocationOrError(parser.value(paths)); # | ^~~~~~~~ qt5-qttools-5.15.15-build/qttools-everywhere-src-5.15.15/src/qtpaths/qtpaths.cpp:269:58: note: the temporary was destroyed at the end of the full expression ‘parseLocationOrError(QCommandLineParser::value(const QCommandLineOption&) const(paths))’ # 269 | const StringEnum &location = parseLocationOrError(parser.value(paths)); # | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ # 267| # 268| if (parser.isSet(paths)) { # 269|-> const StringEnum &location = parseLocationOrError(parser.value(paths)); # 270| QStringList paths = QStandardPaths::standardLocations(location.enumvalue); # 271| results << location.mapName(paths.join(pathsep)); Error: COMPILER_WARNING: [#def9] qt5-qttools-5.15.15-build/qttools-everywhere-src-5.15.15/src/qtpaths/qtpaths.cpp:275:27: warning[-Wdangling-reference]: possibly dangling reference to a temporary # 275 | const StringEnum &location = parseLocationOrError(parser.value(writablePath)); # | ^~~~~~~~ qt5-qttools-5.15.15-build/qttools-everywhere-src-5.15.15/src/qtpaths/qtpaths.cpp:275:58: note: the temporary was destroyed at the end of the full expression ‘parseLocationOrError(QCommandLineParser::value(const QCommandLineOption&) const(writablePath))’ # 275 | const StringEnum &location = parseLocationOrError(parser.value(writablePath)); # | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 273| # 274| if (parser.isSet(writablePath)) { # 275|-> const StringEnum &location = parseLocationOrError(parser.value(writablePath)); # 276| QString path = QStandardPaths::writableLocation(location.enumvalue); # 277| results << location.mapName(path); Error: COMPILER_WARNING: [#def10] qt5-qttools-5.15.15-build/qttools-everywhere-src-5.15.15/src/qtpaths/qtpaths.cpp:287:27: warning[-Wdangling-reference]: possibly dangling reference to a temporary # 287 | const StringEnum &location = parseLocationOrError(parser.value(locateDir)); # | ^~~~~~~~ qt5-qttools-5.15.15-build/qttools-everywhere-src-5.15.15/src/qtpaths/qtpaths.cpp:287:58: note: the temporary was destroyed at the end of the full expression ‘parseLocationOrError(QCommandLineParser::value(const QCommandLineOption&) const(locateDir))’ # 287 | const StringEnum &location = parseLocationOrError(parser.value(locateDir)); # | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ # 285| # 286| if (parser.isSet(locateDir)) { # 287|-> const StringEnum &location = parseLocationOrError(parser.value(locateDir)); # 288| QString searchitem = searchStringOrError(&parser); # 289| QString path = QStandardPaths::locate(location.enumvalue, searchitem, QStandardPaths::LocateDirectory); Error: COMPILER_WARNING: [#def11] qt5-qttools-5.15.15-build/qttools-everywhere-src-5.15.15/src/qtpaths/qtpaths.cpp:294:27: warning[-Wdangling-reference]: possibly dangling reference to a temporary # 294 | const StringEnum &location = parseLocationOrError(parser.value(locateFile)); # | ^~~~~~~~ qt5-qttools-5.15.15-build/qttools-everywhere-src-5.15.15/src/qtpaths/qtpaths.cpp:294:58: note: the temporary was destroyed at the end of the full expression ‘parseLocationOrError(QCommandLineParser::value(const QCommandLineOption&) const(locateFile))’ # 294 | const StringEnum &location = parseLocationOrError(parser.value(locateFile)); # | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ # 292| # 293| if (parser.isSet(locateFile)) { # 294|-> const StringEnum &location = parseLocationOrError(parser.value(locateFile)); # 295| QString searchitem = searchStringOrError(&parser); # 296| QString path = QStandardPaths::locate(location.enumvalue, searchitem, QStandardPaths::LocateFile); Error: COMPILER_WARNING: [#def12] qt5-qttools-5.15.15-build/qttools-everywhere-src-5.15.15/src/qtpaths/qtpaths.cpp:301:27: warning[-Wdangling-reference]: possibly dangling reference to a temporary # 301 | const StringEnum &location = parseLocationOrError(parser.value(locateDirs)); # | ^~~~~~~~ qt5-qttools-5.15.15-build/qttools-everywhere-src-5.15.15/src/qtpaths/qtpaths.cpp:301:58: note: the temporary was destroyed at the end of the full expression ‘parseLocationOrError(QCommandLineParser::value(const QCommandLineOption&) const(locateDirs))’ # 301 | const StringEnum &location = parseLocationOrError(parser.value(locateDirs)); # | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ # 299| # 300| if (parser.isSet(locateDirs)) { # 301|-> const StringEnum &location = parseLocationOrError(parser.value(locateDirs)); # 302| QString searchitem = searchStringOrError(&parser); # 303| QStringList paths = QStandardPaths::locateAll(location.enumvalue, searchitem, QStandardPaths::LocateDirectory); Error: COMPILER_WARNING: [#def13] qt5-qttools-5.15.15-build/qttools-everywhere-src-5.15.15/src/qtpaths/qtpaths.cpp:308:27: warning[-Wdangling-reference]: possibly dangling reference to a temporary # 308 | const StringEnum &location = parseLocationOrError(parser.value(locateFiles)); # | ^~~~~~~~ qt5-qttools-5.15.15-build/qttools-everywhere-src-5.15.15/src/qtpaths/qtpaths.cpp:308:58: note: the temporary was destroyed at the end of the full expression ‘parseLocationOrError(QCommandLineParser::value(const QCommandLineOption&) const(locateFiles))’ # 308 | const StringEnum &location = parseLocationOrError(parser.value(locateFiles)); # | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ # 306| # 307| if (parser.isSet(locateFiles)) { # 308|-> const StringEnum &location = parseLocationOrError(parser.value(locateFiles)); # 309| QString searchitem = searchStringOrError(&parser); # 310| QStringList paths = QStandardPaths::locateAll(location.enumvalue, searchitem, QStandardPaths::LocateFile);
analyzer-version-clippy | 1.82.0 |
analyzer-version-cppcheck | 2.16.0 |
analyzer-version-gcc | 14.2.1 |
analyzer-version-gcc-analyzer | 15.0.0 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-154.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | qt5-qttools-5.15.15-2.fc42 |
store-results-to | /tmp/tmppfqs7jpp/qt5-qttools-5.15.15-2.fc42.tar.xz |
time-created | 2024-11-13 03:00:28 |
time-finished | 2024-11-13 03:09:11 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmppfqs7jpp/qt5-qttools-5.15.15-2.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmppfqs7jpp/qt5-qttools-5.15.15-2.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |