plasma5support-6.3.4-1.fc43

List of Findings

Error: COMPILER_WARNING (CWE-195): [#def1]
plasma5support-6.3.4/src/dataengines/powermanagement/powermanagementjob.cpp: scope_hint: In member function ‘virtual void PowerManagementJob::start()’
plasma5support-6.3.4/src/dataengines/powermanagement/powermanagementjob.cpp:37:37: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘uint’ {aka ‘unsigned int’} and ‘int’
#   37 |         if (m_sleepInhibitionCookie != -1) { // an inhibition request is already active; don't trigger another one
#      |             ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
#   35|       // qDebug() << "starting operation  ... " << operation;
#   36|       if (operation == QLatin1String("beginSuppressingSleep")) {
#   37|->         if (m_sleepInhibitionCookie != -1) { // an inhibition request is already active; don't trigger another one
#   38|               setResult(true);
#   39|               return;

Error: COMPILER_WARNING (CWE-195): [#def2]
plasma5support-6.3.4/src/dataengines/powermanagement/powermanagementjob.cpp:77:36: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘uint’ {aka ‘unsigned int’} and ‘int’
#   77 |         if (m_lockInhibitionCookie != -1) { // an inhibition request is already active; don't trigger another one
#      |             ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
#   75|           return;
#   76|       } else if (operation == QLatin1String("beginSuppressingScreenPowerManagement")) {
#   77|->         if (m_lockInhibitionCookie != -1) { // an inhibition request is already active; don't trigger another one
#   78|               setResult(true);
#   79|               return;

Error: COMPILER_WARNING (CWE-563): [#def3]
plasma5support-6.3.4/src/plasma5support/dataengineconsumer.cpp: scope_hint: In member function ‘void Plasma5Support::DataEngineConsumerPrivate::slotJobFinished(Plasma5Support::ServiceJob*)’
plasma5support-6.3.4/src/plasma5support/dataengineconsumer.cpp:22:77: warning[-Wunused-parameter]: unused parameter ‘job’
#   22 | void DataEngineConsumerPrivate::slotJobFinished(Plasma5Support::ServiceJob *job)
#      |                                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
#   20|   namespace Plasma5Support
#   21|   {
#   22|-> void DataEngineConsumerPrivate::slotJobFinished(Plasma5Support::ServiceJob *job)
#   23|   {
#   24|   #ifndef NDEBUG

Scan Properties

analyzer-version-clippy1.86.0
analyzer-version-cppcheck2.17.1
analyzer-version-gcc15.0.1
analyzer-version-gcc-analyzer15.0.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-69.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-nameplasma5support-6.3.4-1.fc43
store-results-to/tmp/tmp3ekniz59/plasma5support-6.3.4-1.fc43.tar.xz
time-created2025-04-25 14:59:08
time-finished2025-04-25 15:02:18
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmp3ekniz59/plasma5support-6.3.4-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp3ekniz59/plasma5support-6.3.4-1.fc43.src.rpm'
tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9