Uninitialized variables don't give error, ever!
Uninitialized variables don't give error, ever!
- Subject: Uninitialized variables don't give error, ever!
- From: Tor Langballe <email@hidden>
- Date: Fri, 3 Mar 2006 13:17:03 -0800
I've moved my project onto XCode 2.2 on a new MacBook Pro, and XCode
isn't giving me ANY errors for uninitialized variables!
int x, y;
y = x
works fine.
and
int x;
foo(x)
works as well!
I've looked thru the warnings, but can't find anything I've turned
off. I've tried with some Apple example projects that haven't been
set up by me, and they don't give a warning/error either.
I've tried the -Wuninitialized warning, but that doesn't seem to want
to work no matter what optimization I use:
cc1plus: warning: -Wuninitialized is not supported without -O
Is there something obvious I'm doing wrong, this was working before.
Regards,
Tor Langballe
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden