[Insight-developers] Warnings on gelas.megason-lab.hms
Arnaud Gelas
arnaud_gelas at hms.harvard.edu
Mon May 18 11:15:34 EDT 2009
Hi Wes,
You're right, this is one of my machine. I can remove -Wshadow flag (no
problem, will be done for next nightly build)!
Note I have been asked couple of days ago to add these following flags
for compilation:
-Wall -Wextra -Wformat=2 -Wno-format-nonliteral -Wunused
-Wpointer-arith -Winvalid-pch -Wcast-align -Wdisabled-optimization
-Woverloaded-virtual -Wshadow -Wwrite-strings -Wstrict-null-sentinel
I had to add -funit-at-a-time to remove error messages from gcc...
Would it be possible to agree on the right flags to be used with gcc
4.3.2 (and other compiler) for nightly builds?
I have just started a wiki page for this issue:
http://www.vtk.org/Wiki/Build_Instructions_for_Developers
Arnaud
Wes Turner wrote:
> Arnaud,
>
> We think this is one of your machines. It is showing 587 compiler
> warnings on the latest nightly. We think these are do to the -Wshadow
> flag on the build, seemingly due to the shadowing of global variables
> by local variables of the same name in the itkjpeg package. After
> taking a look at the warnings, it doesn't look like these are real
> code deficiencies. They seem more like poor coding style. Would you
> be able to remove the flag on the nightly submission, and maybe move
> it to an experimental? Alternately, if you would like to fix the
> warnings, we would welcome the fixes.
>
> Thanks!
>
> - Wes
>
>
More information about the Insight-developers
mailing list