From 46c0bed928ed1c2bf87e03369dc96ab633727e75 Mon Sep 17 00:00:00 2001 From: vbd Date: Fri, 14 Sep 2007 12:43:16 +0000 Subject: [PATCH] staffan : * turned on all warnings * fixed some things that caused warnings --- src/INTERP_KERNEL/Makefile.in | 4 ++-- src/INTERP_KERNEL/TransformedTriangle.cxx | 2 +- src/INTERP_KERNEL/TransformedTriangle_math.cxx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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. -- 2.39.2