RE: Tracking down type mismatches
RE: Tracking down type mismatches
- Subject: RE: Tracking down type mismatches
- From: "Karan, Cem (Civ, ARL/CISD)" <email@hidden>
- Date: Thu, 7 Jul 2005 08:21:47 -0400
- Thread-topic: Tracking down type mismatches
You can try using '-Wconversion', although I don't know if that will get you all that you need. Also '-Wall' doesn't actually turn on all the warnings. '-W' turns on more of them (but still not all). You need to read through the manual to see what warnings you can turn on.
Good luck,
Cem Karan
>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.
<<winmail.dat>>
_______________________________________________
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