From: vbd Date: Fri, 14 Sep 2007 12:43:16 +0000 (+0000) Subject: staffan : X-Git-Tag: trio_trio_coupling~20 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=46c0bed928ed1c2bf87e03369dc96ab633727e75;p=tools%2Fmedcoupling.git staffan : * turned on all warnings * fixed some things that caused warnings --- diff --git a/src/INTERP_KERNEL/Makefile.in b/src/INTERP_KERNEL/Makefile.in index 3c98159a6..d9aef8f48 100644 --- a/src/INTERP_KERNEL/Makefile.in +++ b/src/INTERP_KERNEL/Makefile.in @@ -95,8 +95,8 @@ CPPFLAGS+=$(BOOST_CPPFLAGS) # optimization -CXXFLAGS+= -O2 -DOPTIMIZE -CPPFLAGS+= -O2 -DOPTIMIZE +CXXFLAGS+= -O2 -DOPTIMIZE -Wall +CPPFLAGS+= -O2 -DOPTIMIZE -Wall # for log CXXFLAGS+= -DLOG_LEVEL=0 diff --git a/src/INTERP_KERNEL/TransformedTriangle.cxx b/src/INTERP_KERNEL/TransformedTriangle.cxx index 6180698f2..70fae60e2 100644 --- a/src/INTERP_KERNEL/TransformedTriangle.cxx +++ b/src/INTERP_KERNEL/TransformedTriangle.cxx @@ -607,7 +607,7 @@ namespace INTERP_UTILS sort((polygon.begin()), polygon.end(), order); LOG(3,"Sorted polygon is "); - for(int i = 0 ; i < polygon.size() ; ++i) + for(size_t i = 0 ; i < polygon.size() ; ++i) { LOG(3,vToStr(polygon[i])); } diff --git a/src/INTERP_KERNEL/TransformedTriangle_math.cxx b/src/INTERP_KERNEL/TransformedTriangle_math.cxx index 7abb59412..ebbf768f3 100644 --- a/src/INTERP_KERNEL/TransformedTriangle_math.cxx +++ b/src/INTERP_KERNEL/TransformedTriangle_math.cxx @@ -206,7 +206,7 @@ namespace INTERP_UTILS _doubleProducts[8*seg + dp] = 0.0; }; } -#endif OPTIMIZE +#endif //OPTIMIZE /** * Calculate the shortest distance between a tetrahedron corner and a triangle segment.