Hi,
My compiler
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
also show the warnings:
WordKey.h: In method `int WordDBPage::Uncompress_main(class Compressor *)':
WordKey.h:227: warning: `class String * this' might be used uninitialized in this
function
../htlib/htString.h:27: warning: `class Object * this' might be used uninitialized in
this function
../htlib/htString.h:27: warning: `class Object * this' might be used uninitialized in
this function
WordKey.h:227: warning: `class String * this' might be used uninitialized in this
function
../htlib/htString.h:27: warning: `class Object * this' might be used uninitialized in
this function
../htlib/htString.h:27: warning: `class Object * this' might be used uninitialized in
this function
These are false warnings. Such a warning also occurs in one other place where
the compiler mistake is more obvious:
int a = 0;
if(a) <- complains : may be used uninitialized.
I got rid of many warnings like these in htdig quite artificially :
duplicating the initialization code in the constructors instead of using
a initialization function. Having no warnings is really important otherwise
you miss the important ones. A trick might be to do a #define macro and
use it in place of the initialization function. I know it's horrible. But
it's even worse to have tons of warnings in the compiler output.
Cheers,
--
Loic Dachary
24 av Secretan
75019 Paris
Tel: 33 1 42 45 09 16
e-mail: [EMAIL PROTECTED]
URL: http://www.senga.org/
------------------------------------
To unsubscribe from the htdig3-dev mailing list, send a message to
[EMAIL PROTECTED]
You will receive a message to confirm this.