Red Hat Bugzilla – Bug 169189
compiler notices dodgy code
Last modified: 2007-11-30 17:11:14 EST
Description of problem:
I just tried to compile Fedora development package kdegraphics-3.4.2-5
with the extra compiler flag -Wall.
The compiler said
kpcursorlightcross.cpp:75: warning: 'colorValue' is used uninitialized in this
The source code is
colorBitmap [y * (width / 8) + (x / 8)] |= (1 << (x % 8));
There seems to be a missing default section in the previous switch statement.
Suggest initialise the local variable "colorValue" at its declaration
to make the code bulletproof and to shut the compiler up.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
it's now fixed in 3.5.1-2. Thanks for your report.