diff --git a/alib2common/src/measurements/MeasurementResultsXml.cpp b/alib2common/src/measurements/MeasurementResultsXml.cpp index 44fbf895e4512f0cb826add151759cd2b3100107..011d8be86daa2b347137f743a265e4b627980ae6 100644 --- a/alib2common/src/measurements/MeasurementResultsXml.cpp +++ b/alib2common/src/measurements/MeasurementResultsXml.cpp @@ -321,7 +321,7 @@ void MeasurementResultsXml::parseCounterDataFrameCounters ( const std::string & FromXMLParserHelper::popToken ( iter, Token::TokenType::START_ELEMENT, COUNTER_DATA_FRAME_COUNTER_TAG ); stealth_string counterName; - CounterHint::value_type counterValue; + CounterHint::value_type counterValue = -1; //FIXME Radku overit for ( ; ; ) { if ( !FromXMLParserHelper::isTokenType ( iter, Token::TokenType::START_ELEMENT ) ) break; diff --git a/alib2common/src/measurements/MeasurementTypes.cpp b/alib2common/src/measurements/MeasurementTypes.cpp index 1619dad3295ceadc84d70c22a85d5107de602c25..fe19c0f323c9c99a7269d8108e14013851eb3cce 100644 --- a/alib2common/src/measurements/MeasurementTypes.cpp +++ b/alib2common/src/measurements/MeasurementTypes.cpp @@ -25,6 +25,9 @@ std::string to_string ( Type t ) { case Type::AUXILIARY: return "AUXILIARY"; + + default: + throw::exception::CommonException ( "Missing case."); } } diff --git a/alib2common/src/measurements/frames/TimeDataFrame.cpp b/alib2common/src/measurements/frames/TimeDataFrame.cpp index 7c9834e43ee11d6d87b2d4836286d5cd2fcbe07c..8107b3eb2e87ed2bf6ed95383f6dfa5432a9a3d5 100644 --- a/alib2common/src/measurements/frames/TimeDataFrame.cpp +++ b/alib2common/src/measurements/frames/TimeDataFrame.cpp @@ -28,7 +28,7 @@ void TimeDataFrame::update ( unsigned frameIdx, measurements::stealth_vector < M } TimeDataFrame TimeDataFrame::aggregate ( const std::vector < MeasurementFrame > & framesToAggregate ) { - TimeDataFrame aggregatedTimeDataFrame { }; + TimeDataFrame aggregatedTimeDataFrame; // we want to compute simple average of times for ( const MeasurementFrame & frame : framesToAggregate ) { diff --git a/alib2measurepp/src/processor/MeasurementProcessorOutput.cpp b/alib2measurepp/src/processor/MeasurementProcessorOutput.cpp index 2b0f372b342f083698a987ba220bfeea88be8dcc..cd310ed601e77459afde07b496c45a25338319ff 100644 --- a/alib2measurepp/src/processor/MeasurementProcessorOutput.cpp +++ b/alib2measurepp/src/processor/MeasurementProcessorOutput.cpp @@ -7,6 +7,7 @@ #include "sax/SaxComposeInterface.h" #include <set> #include <iostream> +#include <exception/CommonException.h> namespace measurements { @@ -185,6 +186,9 @@ std::string MeasurementProcessorOutput::getData ( const MeasurementFrame & frame case OutputEngine::COUNTER: return MeasurementProcessorViews::viewCounterDataFrame ( frame, mpo.outputEngineAttr ); + + default: + throw::exception::CommonException ( "Missing case."); } }