On 17.08.2011 11:38, asif saeed wrote:

> Select Project/Properties/C/C++/General/Warning Level and select Warning
> Level 3.

Just out of curiousity: why did you do that? And how did you do it?
Did you change the properties of each single project and configuration
by point'n'click, or is there a way to set this for the whole project?
This would help for further testing...

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?

BTW: I have a patch that fixes most of the issues for test/glpuzzle.cxx
ready to commit. Should we?

Albrecht

[1] FWIW (warning: one long line, may wrap):
for f in *.vcxproj;do echo $f;sed -i -e's"</CompileAs>"</CompileAs>\r\n 
      <WarningLevel>Level3</WarningLevel>"' $f;u2d $f;done

Note that u2d is used to fix the line endings for svn (diff) since
sed converts the files to LF-only.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to