[Geany] [PATCH] Fixes for warnings and portability
Daniel Richard G.
skunk at xxxxx
Fri Feb 22 21:31:51 UTC 2008
On Fri, 2008 Feb 22 12:37:04 -0600, Jeff Pohlmeyer wrote:
> >
> > Well, there it would just be a matter of casting the (presumably integer)
> > second and third arguments to float. Though I'd agree that doing this sort
> > of thing every time the warning arises is overkill.
>
> Nope, even typecasting doesn't work. I don't think there is any possible
> way to workaround that warning.
>
> For example, try compiling this with -Wconversion :
> [...]
> Crazy, isn't it?
Ah, I see what you mean. It must still be doing the implicit float->double
type promotion... yeah, that's crazy :]
I usually filter it all into my warnings-summary script anyway, so it's not
an overly big deal, but if I were running make(1) on the command line it
would be preferable to drop the noise. So that real warnings don't slip
through!
--Daniel
--
NAME = Daniel Richard G. ## Remember, skunks _\|/_ meef?
EMAIL1 = skunk at iskunk.org ## don't smell bad--- (/o|o\) /
EMAIL2 = skunk at alum.mit.edu ## it's the people who < (^),>
WWW = http://www.******.org/ ## annoy them that do! / \
--
(****** = site not yet online)
More information about the Users
mailing list