From: Ilya Lavrenov Date: Mon, 16 Nov 2020 09:50:03 +0000 (+0300) Subject: Fixed klockwork (#3119) X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0a230f829e572c517199fa6f517341fc77620d26;p=platform%2Fupstream%2Fdldt.git Fixed klockwork (#3119) --- diff --git a/inference-engine/src/legacy_api/include/legacy/details/ie_cnn_network_iterator.hpp b/inference-engine/src/legacy_api/include/legacy/details/ie_cnn_network_iterator.hpp index b22e55a..a68b454 100644 --- a/inference-engine/src/legacy_api/include/legacy/details/ie_cnn_network_iterator.hpp +++ b/inference-engine/src/legacy_api/include/legacy/details/ie_cnn_network_iterator.hpp @@ -32,9 +32,9 @@ class INFERENCE_ENGINE_INTERNAL("Migrate to IR v10 and work with ngraph::Functio CNNNetworkIterator { IE_SUPPRESS_DEPRECATED_START - std::unordered_set visited; - std::list nextLayersToVisit; - InferenceEngine::CNNLayerPtr currentLayer; + std::unordered_set visited {}; + std::list nextLayersToVisit {}; + InferenceEngine::CNNLayerPtr currentLayer = nullptr; const ICNNNetwork* network = nullptr; void init(const ICNNNetwork* net) { diff --git a/inference-engine/src/readers/ir_reader_v7/ie_layer_validators.cpp b/inference-engine/src/readers/ir_reader_v7/ie_layer_validators.cpp index 245e87a..58de71d 100644 --- a/inference-engine/src/readers/ir_reader_v7/ie_layer_validators.cpp +++ b/inference-engine/src/readers/ir_reader_v7/ie_layer_validators.cpp @@ -2222,7 +2222,7 @@ void ScatterElementsUpdateValidator::checkShapes(const CNNLayer* layer, const ve #define REG_LAYER_VALIDATOR_FOR_TYPE(__validator, __type) _validators[#__type] = std::make_shared<__validator>(#__type) -LayerValidators::LayerValidators() { +LayerValidators::LayerValidators() : _validators() { REG_LAYER_VALIDATOR_FOR_TYPE(ActivationValidator, Activation); REG_LAYER_VALIDATOR_FOR_TYPE(ArgMaxValidator, ArgMax); REG_LAYER_VALIDATOR_FOR_TYPE(BatchNormalizationValidator, BatchNormalization);