Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#3 warnings during compilations may lead to bugs

open
nobody
None
5
2006-01-30
2006-01-30
Anonymous
No

Os. KUbuntu ( breezy )
KDE 3.5
Qmake version: 1.07a (Qt 3.3.4)
e-mail address : marco.ferretti@gmail.com

During compilation of V2.0RC3 I am getting theese
warnings can could lead, due to wrong input, to bugs :
src/zbuser.cc: In member function `float
zbuser::calcTarif()':
src/zbuser.cc:212: warning: comparison between signed
and unsigned integer expressions
src/cfg_tf.cc: In member function `void
cfg_tf::slotFullDayHours(int)':
src/cfg_tf.cc:787: warning: comparison between signed
and unsigned integer expressions
src/cfg_tf.cc:787: warning: comparison between signed
and unsigned integer expressions
src/cfg_tf.cc: In member function `void
cfg_tf::slotHalfDayHours(int)':
src/cfg_tf.cc:795: warning: comparison between signed
and unsigned integer expressions
src/cfg_tf.cc:795: warning: comparison between signed
and unsigned integer expressions

as you can see the major possible bug may be introduced
in the tarif calculation since one can insert a 0 or a
negative number ( obviously by mistake ) .

Discussion