Newly introduced defects

List of Defects

Error: COMPILER_WARNING (CWE-252): [#def1]
kf6-kirigami-addons-1.2.1-build/kirigami-addons-1.2.1/src/components/nameutils.cpp: scope_hint: In member function ‘bool NameUtils::isStringUnsuitableForInitials(const QString&)’
kf6-kirigami-addons-1.2.1-build/kirigami-addons-1.2.1/src/components/nameutils.cpp:162:16: warning[-Wunused-result]: ignoring return value of ‘bool std::any_of(_IIter, _IIter, _Predicate) [with _IIter = const QChar*; _Predicate = NameUtils::isStringUnsuitableForInitials(const QString&)::<lambda(const QChar&)>]’, declared with attribute ‘nodiscard’
#  162 |     std::any_of(string.cbegin(), string.cend(), [](const QChar &character) {
#      |     ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  163 |         return std::find(scripts.begin(), scripts.end(), character.script()) == scripts.end();
#      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  164 |     });
#      |     ~~          
/usr/include/c++/14/algorithm:61: included_from: Included from here.
/usr/include/qt6/QtCore/qcontainertools_impl.h:22: included_from: Included from here.
/usr/include/qt6/QtCore/qarraydataops.h:9: included_from: Included from here.
/usr/include/qt6/QtCore/qarraydatapointer.h:7: included_from: Included from here.
/usr/include/qt6/QtCore/qlist.h:8: included_from: Included from here.
/usr/include/qt6/QtCore/qstringlist.h:5: included_from: Included from here.
/usr/include/qt6/QtGui/qcolor.h:10: included_from: Included from here.
/usr/include/qt6/QtGui/QColor:1: included_from: Included from here.
kf6-kirigami-addons-1.2.1-build/kirigami-addons-1.2.1/src/components/nameutils.h:7: included_from: Included from here.
kf6-kirigami-addons-1.2.1-build/kirigami-addons-1.2.1/src/components/nameutils.cpp:5: included_from: Included from here.
/usr/include/c++/14/bits/stl_algo.h:447:5: note: declared here
#  447 |     any_of(_InputIterator __first, _InputIterator __last, _Predicate __pred)
#      |     ^~~~~~
#  160|           QChar::Script_Han,    QChar::Script_Hangul,    QChar::Script_Cyrillic};
#  161|   
#  162|->     std::any_of(string.cbegin(), string.cend(), [](const QChar &character) {
#  163|           return std::find(scripts.begin(), scripts.end(), character.script()) == scripts.end();
#  164|       });

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-clang18.1.7
diffbase-analyzer-version-cppcheck2.14.2
diffbase-analyzer-version-gcc14.1.1
diffbase-analyzer-version-gcc-analyzer14.1.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-enabled-pluginsclang, cppcheck, gcc, shellcheck
diffbase-exit-code0
diffbase-hostip-172-16-1-13.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-namekf6-kirigami-addons-1.1.0-1.fc40
diffbase-store-results-to/tmp/tmpf9ei7hwm/kf6-kirigami-addons-1.1.0-1.fc40.tar.xz
diffbase-time-created2024-07-03 14:08:51
diffbase-time-finished2024-07-03 14:12:30
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpf9ei7hwm/kf6-kirigami-addons-1.1.0-1.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpf9ei7hwm/kf6-kirigami-addons-1.1.0-1.fc40.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-13.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namekf6-kirigami-addons-1.2.1-1.fc41
store-results-to/tmp/tmpfcja57rv/kf6-kirigami-addons-1.2.1-1.fc41.tar.xz
time-created2024-07-03 14:12:58
time-finished2024-07-03 14:16:14
titleNewly introduced defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpfcja57rv/kf6-kirigami-addons-1.2.1-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpfcja57rv/kf6-kirigami-addons-1.2.1-1.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9