Fixed defects

List of Defects

Error: COMPILER_WARNING (CWE-563): [#def1]
plasma-breeze-6.0.3-build/breeze-6.0.3/kstyle/breezestyle.cpp: scope_hint: In member function ‘bool Breeze::Style::drawScrollBarComplexControl(const QStyleOptionComplex*, QPainter*, const QWidget*) const’
plasma-breeze-6.0.3-build/breeze-6.0.3/kstyle/breezestyle.cpp:7648:16: warning[-Wunused-variable]: unused variable ‘animated’
# 7648 |     const bool animated(StyleConfigData::animationsEnabled() && _animations->scrollBarEngine().isAnimated(widget, AnimationHover, QStyle::SC_ScrollBarGroove));
#      |                ^~~~~~~~
# 7646|       // the opacity of everything else as well, included slider and arrows
# 7647|       qreal opacity(_animations->scrollBarEngine().opacity(widget, QStyle::SC_ScrollBarGroove));
# 7648|->     const bool animated(StyleConfigData::animationsEnabled() && _animations->scrollBarEngine().isAnimated(widget, AnimationHover, QStyle::SC_ScrollBarGroove));
# 7649|       const bool mouseOver(option->state & State_MouseOver);
# 7650|   

Error: COMPILER_WARNING (CWE-563): [#def2]
plasma-breeze-6.0.3-build/breeze-6.0.3/kstyle/breezestyle.cpp:7649:16: warning[-Wunused-variable]: unused variable ‘mouseOver’
# 7649 |     const bool mouseOver(option->state & State_MouseOver);
#      |                ^~~~~~~~~
# 7647|       qreal opacity(_animations->scrollBarEngine().opacity(widget, QStyle::SC_ScrollBarGroove));
# 7648|       const bool animated(StyleConfigData::animationsEnabled() && _animations->scrollBarEngine().isAnimated(widget, AnimationHover, QStyle::SC_ScrollBarGroove));
# 7649|->     const bool mouseOver(option->state & State_MouseOver);
# 7650|   
# 7651|       if (opacity == AnimationData::OpacityInvalid) {

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-231.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-nameplasma-breeze-6.1.1-1.fc41
diffbase-store-results-to/tmp/tmpfgfcorvp/plasma-breeze-6.1.1-1.fc41.tar.xz
diffbase-time-created2024-07-03 17:04:35
diffbase-time-finished2024-07-03 17:09:05
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpfgfcorvp/plasma-breeze-6.1.1-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpfgfcorvp/plasma-breeze-6.1.1-1.fc41.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-231.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-nameplasma-breeze-6.0.3-1.fc40
store-results-to/tmp/tmp3754i423/plasma-breeze-6.0.3-1.fc40.tar.xz
time-created2024-07-03 16:59:07
time-finished2024-07-03 17:04:07
titleFixed defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp3754i423/plasma-breeze-6.0.3-1.fc40.tar.xz' '--gcc-analyze' '/tmp/tmp3754i423/plasma-breeze-6.0.3-1.fc40.src.rpm'
tool-versioncsmock-3.5.3-1.el9