• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Uninitialized variables don't give error, ever!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Uninitialized variables don't give error, ever!
      • From: "Sean McBride" <email@hidden>
  • Prev by Date: conversion of a PowerPC dylib to a universal dylib
  • Next by Date: TWAIN data source
  • Previous by thread: Re: conversion of a PowerPC dylib to a universal dylib
  • Next by thread: Re: Uninitialized variables don't give error, ever!
  • Index(es):
    • Date
    • Thread