From: ageay Date: Thu, 1 Jul 2010 09:27:59 +0000 (+0000) Subject: Warning suppression. X-Git-Tag: V5_1_main_FINAL~105 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=14c22ea35b2402e65d20b0646cffbc30ae2f4cff;p=tools%2Fmedcoupling.git Warning suppression. --- diff --git a/src/MEDCoupling/MEDCouplingTimeDiscretization.cxx b/src/MEDCoupling/MEDCouplingTimeDiscretization.cxx index ff1a30ad3..aa307459c 100644 --- a/src/MEDCoupling/MEDCouplingTimeDiscretization.cxx +++ b/src/MEDCoupling/MEDCouplingTimeDiscretization.cxx @@ -1302,15 +1302,19 @@ void MEDCouplingLinearTime::getValueOnTime(int eltId, double time, double *value void MEDCouplingLinearTime::getValueOnDiscTime(int eltId, int dt, int it, double *value) const throw(INTERP_KERNEL::Exception) { if(dt==_start_dt && it==_start_it) - if(_array) - _array->getTuple(eltId,value); - else - throw INTERP_KERNEL::Exception("dt it match with start time but no start array existing."); + { + if(_array) + _array->getTuple(eltId,value); + else + throw INTERP_KERNEL::Exception("dt it match with start time but no start array existing."); + } if(dt==_end_dt && it==_end_it) - if(_end_array) - _end_array->getTuple(eltId,value); - else - throw INTERP_KERNEL::Exception("dt it match with end time but no end array existing."); + { + if(_end_array) + _end_array->getTuple(eltId,value); + else + throw INTERP_KERNEL::Exception("dt it match with end time but no end array existing."); + } else throw INTERP_KERNEL::Exception(EXCEPTION_MSG); }