> I managed to set this option in all single project files with sed [1], > and I can see these warnings now, too - however, IMHO there are lots > of really silly warnings. Example: > > float a[] { > 1, // no warning > 0.5, // no warning > 0.1, // *warning* > 0.25 } // no warning > > So the warning depends on the *value* of the initializer (constant). > This can be fixed by adding 'f' to the constant (e.g. 0.1f). Although > this *might* be standard conforming (which standard?), I don't know > if it's worth "fixing" this. Opinions, anybody?
That's quite interesting though - it is spotting that 0.1 can't be represented in a float and complaining, but it is OK with the other values that can be represented. That said, I don't think you can represent 0.1 as a double either... Maybe there's a tolerance margin... Still, seems odd. Maybe that's too high a warning level? I don't use the VC tools so have no real opinion (or knowledge) about them. SELEX Galileo Ltd Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 3EL A company registered in England & Wales. Company no. 02426132 ******************************************************************** This email and any attachments are confidential to the intended recipient and may also be privileged. If you are not the intended recipient please delete it from your system and notify the sender. You should not copy it or use it for any purpose nor disclose or distribute its contents to any other person. ******************************************************************** _______________________________________________ fltk mailing list fltk@easysw.com http://lists.easysw.com/mailman/listinfo/fltk