On 4/15/09 1:53 PM, Greg Parker said:

>> I have way more warnings than that enabled and I don't get a warning
>> either.  I don't think there is one.  File a bug.
>
>-Wconversion will warn about this ("Also, warn if a negative integer
>constant expression is implicitly converted to an unsigned type.")
>But -Wconversion generates other undesirable and unavoidable warnings,
>so you probably can't use it.

Oh yeah, forgot about that one.  In gcc >= 4.3 the 'other undesirable
and unavoidable warnings' were removed:
<http://gcc.gnu.org/gcc-4.3/changes.html>

So -Wconversion is probably exactly what is called for.

Hopefully we'll see it in Apple's gcc fork one day!  Greg, is a radar needed?

--
____________________________________________________________
Sean McBride, B. Eng                 s...@rogue-research.com
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to