Hi Albrecht,

On Wed, Aug 17, 2011 at 4:06 PM, Albrecht Schlosser
<[email protected]>wrote:

> 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?
>

I am not using all the other examples and unit tests. I am just interested
in fltkdll project.

Here is what I did:
  I right clicked on the fltkdll project in the list of project in my
fltk.sln solution.
  then selected "Project Only/Clean only ..." and then "Build Only .." in
the same shortcut menu.



>   float a[] {
>     1,         // no warning
>

integer to float is a standard conversion - so no warning.

    0.5,       // no warning
>

strange.


>     0.1,       // *warning*
>

because a floating point literal is a double by default, afaik, and double
to float conversion is a narrowing on. As you indicated earlier, this can be
fixed by adding an "f".


>     0.25 }     // no warning
>

strange. this is again a double to float conversion.
I don't think adding "f" will do any harm.


> [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.
>

Thanks.

Best, Asif
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to