• 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
Tracking down type mismatches
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Tracking down type mismatches


  • Subject: Tracking down type mismatches
  • From: Tim Conkling <email@hidden>
  • Date: Wed, 6 Jul 2005 17:17:35 -0400

I just changed the type of a member variable of a class from 'short' to 'long'. This will have a big effect on the way my program works, and I can't seem to get Xcode (2.1) to help me track down all the places where I am using shorts that should be changed to longs.

For example, there is a member function in this object called getRows (). It used to return a short and now it returns a long. There are many places in my code where I'm doing something like:

short rows = level->getRows();

I would like to see a warning saying that I'm implicitly casting from a long to a short so that I can correct all instances of this sort of thing.

I've been through all of settings in the "Warnings" section of my Build Configuration, and I couldn't find anything that does what I want. I added -Wall to the "Other Warning Flags" build configuration with no luck.

What am I doing wrong? Why am I not seeing warnings about this sort of thing? I have cleaned and recompiled my program several times to no avail.

THanks
_______________________________________________
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: Tracking down type mismatches
      • From: Bryan Pietrzak <email@hidden>
  • Prev by Date: [OT] What kind of data is is returned by 'new' ?
  • Next by Date: Re: Help files in Xcode shows up as html and nothing to find
  • Previous by thread: Re: [OT] What kind of data is is returned by 'new' ?
  • Next by thread: Re: Tracking down type mismatches
  • Index(es):
    • Date
    • Thread