Commit b774794514fadb92b25a28fd98a8cfbf035094ff

Authored by Benjamin Renard
1 parent 8cd29bee

Fix some warning message

src/ParamOutputImpl/Plot/Time/TimePlot.cc
... ... @@ -1161,7 +1161,7 @@ void TimePlot::drawIntervals(double startDate, double stopDate, std::string pPar
1161 1161 AMDA::Info::ParamInfoSPtr paramInfo = AMDA::Info::ParamMgr::getInstance()->getParamInfoFromId(p->getInfoId());
1162 1162  
1163 1163 //get computed values
1164   - int startIndex, nbData;
  1164 + int startIndex, nbData = 0;
1165 1165 data.getIntervalBounds(startDate, stopDate, startIndex, nbData);
1166 1166  
1167 1167 Color crtColor;
... ...
src/Parameters/DataTypeMath.hh
... ... @@ -1564,7 +1564,7 @@ template<typename Type>
1564 1564 bool isValid(const std::string& num) {
1565 1565 bool flag = true;
1566 1566 try {
1567   - Type tmp = boost::lexical_cast<Type>(num);
  1567 + boost::lexical_cast<Type>(num);
1568 1568 } catch (boost::bad_lexical_cast &e) {
1569 1569 flag = false;
1570 1570 }
... ...
src/TimeTableCatalog/VOTableWriter.cc
... ... @@ -193,6 +193,9 @@ void VOTableWriter::writeVOTable(const TimeTable&amp; pTT,
193 193 case ParameterDescription::ParameterType::String:
194 194 size = -1;
195 195 break;
  196 + default:
  197 + // Nothing to do
  198 + break;
196 199 }
197 200 }
198 201  
... ...