|
From: Paul P. <ppl...@gm...> - 2004-09-28 17:28:32
|
On Tue, 28 Sep 2004 16:44:27 +0000 (UTC), Daniel Miller
<da...@im...> wrote:
> some of these warnings are clearly spurious; a typical example is: [...]
> result is defined as int, and get_number_of_luns() returns int. So result
> cannot be uninitialized here.
Oh yes, it can!
Try this test case:
int foo() { int x; return x; } // returns "uninitialized" value
int main() {
int x = foo();
if (x) return 0;
return 1;
}
Cheers,
|