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