Re: How to disable 'warning: converting to 'int' from 'float'' warning?
Re: How to disable 'warning: converting to 'int' from 'float'' warning?
- Subject: Re: How to disable 'warning: converting to 'int' from 'float'' warning?
- From: "Sean McBride" <email@hidden>
- Date: Fri, 7 Oct 2005 12:01:25 -0400
- Organization: Rogue Research
On 2005-10-06 23:52, Alastair Houghton said:
>> How does one disable the warning "warning: converting to 'int' from
>> 'float'".
>>
>> I know I could cast, but there are too many. :(
>
>Just cast. If it's your intention to convert a float to an int, you
>should
>have a cast there to show that; otherwise the code isn't clear.
I agree. But adding thousands of casts really doesn't appeal to me.
It's an old codebase.
>(Having not seen your code, of course, this is all very general advice.
>Maybe it doesn't apply to you for some reason, or maybe you really have
>your heart set on turning off this warning rather than changing the
>code.)
So is it really impossible to turn off this warning? gcc has so many
options! But none for this one? :( I don't want to have to disable all
warnings.
Thanks,
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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