Subject: Re: uninitialized vars
To: None <firstname.lastname@example.org>
From: Christos Zoulas <email@example.com>
Date: 10/18/2005 12:58:11
In article <20051018093828.GA19887@localhost.localdomain>,
Jaka Jejcic <firstname.lastname@example.org> wrote:
>Maybe you will all find this ridiculous but I find myself
>adding '= 0' or '= NULL' to many of the files and many of
>the variables each time I build the source tree just to
>get it compiled, because the build fails for uninitialized vars.
>Am I doing something wrong? If not, why aren't those vars set to
>some appropriate value?
You are probably compiling without optimization and the compiler
does not do the necessary control flow analysis to find that those
variables don't need to be initialized.