[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-chat] format '%5.2f' expects type 'double', but argument 6 has

From: Rick Mann
Subject: Re: [avr-chat] format '%5.2f' expects type 'double', but argument 6 has type 'float'
Date: Fri, 3 Feb 2012 13:30:04 -0800

Oops, sorry, meant to reply to the list, too.

Really? Interesting. I consider explicitly typing out the default behavior to 
be a prime example of messy. You don't gain anything by having it in the code 
(there's no readability improvement); in fact, it clutters the code.

But, I guess there's not much that can be done about it. Thanks for the info.


On Feb 3, 2012, at 13:27 , Joerg Wunsch wrote:

> As Rick Mann wrote:
>> I can do that, but it's messy.
> I'd consider typecasts to the default promotion types in variadic
> functions not messy but good style.  They just make explicit what will
> happen anyway.
>> I'm still just questioning the
>> correctness of the warning.
> You have to ask the GCC folks about that.
> -- 
> cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL
> http://www.sax.de/~joerg/                        NIC: JW11-RIPE
> Never trust an operating system you don't have sources for. ;-)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]