[Insight-developers] warning level on gcc
Daniel J. Blezek, Ph.D.
blezek@crd.ge.com
Mon, 5 Feb 2001 08:56:06 -0500 (EST)
Lydia,
Unfortunately, CMake doesn't know (or care) about compiler flags, and by
default, gcc compiles with minimal warnings. This is only marginally
better than VC++, which by default compiles with warnings off.
A working document for the testing system is here:
http://public.kitware.com/Insight/HTMLPrivate/InsightTestingStart.html
For the dashboard, I use these flags:
gcc
setenv CFLAGS "-O3 -Wall";
setenv CXXFLAGS "-O3 -Wall";
../Insight/configure;
gcc - coverage
setenv CFLAGS "-Wall -fprofile-arcs -ftest-coverage";
setenv CXXFLAGS "-Wall -fprofile-arcs -ftest-coverage" ;
../Insight/configure --with-buildname=Coverage-Linux-2.2.14-5.0smp-c++
Irix n32
setenv CC cc; setenv CFLAGS "-n32 -fullwarn -woff 3439" ;
setenv CXX CC;
setenv CXXFLAGS "-n32 -fullwarn -LANG:std -woff 3439" ;
setenv CC cc ;
../Insight/configure --with-buildname=Irix64-6.5-CCn32;
Irix 64
setenv CXX CC;
setenv CXXFLAGS "-64 -fullwarn -LANG:std -woff 3439" ;
setenv CC cc;
setenv CFLAGS "-64 -fullwarn";
../Insight/configure --with-buildname=Irix64-6.5-CC64
Best wishes,
-dan
On Fri, 2 Feb 2001, Lydia Ng wrote:
> Hi,
>
> I noticed that when I do my linux build (via cmake)
> the compiler warning level is different to that
> used on the dashboard (crd.ge.com, linux-2.2.1-5.0smp-c++).
>
> It would be good if the warning levels was consistent
> so that we can fix these as we compile.
>
> Lydia
>
>
>
>
>
>
> _______________________________________________
> Insight-developers mailing list
> Insight-developers@public.kitware.com
> http://public.kitware.com/mailman/listinfo/insight-developers
>
--
Daniel Blezek, Ph.D.
blezek@crd.ge.com
Visual Information Program
Electronic Systems Lab
GE Corporate Research & Development