diff --git a/inference-engine/include/ie_locked_memory.hpp b/inference-engine/include/ie_locked_memory.hpp index 111169ac321..5a8c0d529fd 100644 --- a/inference-engine/include/ie_locked_memory.hpp +++ b/inference-engine/include/ie_locked_memory.hpp @@ -51,7 +51,7 @@ public: * * @param that An rvalue reference for the other LockedMemoryBase instance */ - LockedMemoryBase(LockedMemoryBase&& that) + LockedMemoryBase(LockedMemoryBase&& that) noexcept : _allocator(that._allocator), _handle(that._handle), _lockFlag(that._lockFlag), _offset(that._offset) { that._locked = nullptr; } diff --git a/inference-engine/src/plugin_api/cpp_interfaces/impl/ie_plugin_internal.hpp b/inference-engine/src/plugin_api/cpp_interfaces/impl/ie_plugin_internal.hpp index 2f56b4827b4..54409e4e51b 100644 --- a/inference-engine/src/plugin_api/cpp_interfaces/impl/ie_plugin_internal.hpp +++ b/inference-engine/src/plugin_api/cpp_interfaces/impl/ie_plugin_internal.hpp @@ -208,6 +208,9 @@ protected: virtual ExecutableNetwork ImportNetworkImpl(std::istream& networkModel, const RemoteContext::Ptr& context, const std::map& config) { + (void)networkModel; + (void)context; + (void)config; THROW_IE_EXCEPTION << NOT_IMPLEMENTED_str; } diff --git a/inference-engine/src/plugin_api/debug.h b/inference-engine/src/plugin_api/debug.h index 744ffb95e80..ab7510ce19c 100644 --- a/inference-engine/src/plugin_api/debug.h +++ b/inference-engine/src/plugin_api/debug.h @@ -204,7 +204,8 @@ inline bool endsWith(const std::string& src, const char* with) { inline std::string tolower(const std::string& s) { std::string ret; ret.resize(s.length()); - std::transform(s.begin(), s.end(), ret.begin(), ::tolower); + std::transform(s.begin(), s.end(), ret.begin(), + [](char c) { return static_cast(::tolower(static_cast(c))); }); return ret; } } // namespace details diff --git a/inference-engine/src/plugin_api/exec_graph_info.hpp b/inference-engine/src/plugin_api/exec_graph_info.hpp index c29e73faf70..d05254dbdd3 100644 --- a/inference-engine/src/plugin_api/exec_graph_info.hpp +++ b/inference-engine/src/plugin_api/exec_graph_info.hpp @@ -136,7 +136,7 @@ public: * * @return Returns `true` if an operation has completed successfully */ - bool visit_attributes(ngraph::AttributeVisitor& visitor) override { + bool visit_attributes(ngraph::AttributeVisitor& /*visitor*/) override { return true; } }; diff --git a/inference-engine/src/plugin_api/generic_ie.hpp b/inference-engine/src/plugin_api/generic_ie.hpp index a7e352a233c..2cb48c99956 100644 --- a/inference-engine/src/plugin_api/generic_ie.hpp +++ b/inference-engine/src/plugin_api/generic_ie.hpp @@ -68,11 +68,11 @@ public: } if (auto ti_node = std::dynamic_pointer_cast(op)) { auto results = ti_node->get_body()->get_results(); - auto params = ti_node->get_body()->get_parameters(); + auto ti_params = ti_node->get_body()->get_parameters(); ngraph::NodeVector nResults, nParams; for (const auto& res : results) nResults.emplace_back(res); - for (const auto& param : params) + for (const auto& param : ti_params) nParams.emplace_back(param); ngraph::traverse_nodes(nResults, [&](std::shared_ptr node) { if (auto genNode = std::dynamic_pointer_cast(node)) { diff --git a/inference-engine/src/plugin_api/xml_parse_utils.h b/inference-engine/src/plugin_api/xml_parse_utils.h index b732909526e..e582bd74b6f 100644 --- a/inference-engine/src/plugin_api/xml_parse_utils.h +++ b/inference-engine/src/plugin_api/xml_parse_utils.h @@ -253,7 +253,7 @@ struct parse_result { * * @return The parse_result. */ -static parse_result ParseXml(const char* file_path) { +inline parse_result ParseXml(const char* file_path) { #ifdef ENABLE_UNICODE_PATH_SUPPORT std::wstring wFilePath = FileUtils::multiByteCharToWString(file_path); const wchar_t* resolvedFilepath = wFilePath.c_str(); diff --git a/inference-engine/tests/functional/inference_engine/CMakeLists.txt b/inference-engine/tests/functional/inference_engine/CMakeLists.txt index 6d61c3948db..e0ca1f9f80c 100644 --- a/inference-engine/tests/functional/inference_engine/CMakeLists.txt +++ b/inference-engine/tests/functional/inference_engine/CMakeLists.txt @@ -220,15 +220,12 @@ if(UNIX) PLUGIN_API) else() ie_headers_compilation_with_custom_flags(TEST_SUFFIX PluginApiPedantic FLAGS "-Wpedantic" - HEADERS_TO_SKIP "generic_ie.hpp" PLUGIN_API) endif() else() - # TODO: enable - # ie_headers_compilation_with_custom_flags(TEST_SUFFIX PluginApiWindowsAreErrors - # HEADERS_TO_SKIP "generic_ie.hpp" - # FLAGS "/we4996 /W4 /WX" - # PLUGIN_API) + ie_headers_compilation_with_custom_flags(TEST_SUFFIX PluginApiWindowsAreErrors + FLAGS "/we4996 /W4 /WX" + PLUGIN_API) endif() # ir serialization functional tests variables diff --git a/ngraph/core/include/ngraph/attribute_adapter.hpp b/ngraph/core/include/ngraph/attribute_adapter.hpp index e49eed83e80..3e83e7f49a9 100644 --- a/ngraph/core/include/ngraph/attribute_adapter.hpp +++ b/ngraph/core/include/ngraph/attribute_adapter.hpp @@ -94,6 +94,7 @@ namespace ngraph public: IndirectScalarValueAccessor(AT& ref) : m_ref(ref) + , m_buffer() { } diff --git a/ngraph/core/include/ngraph/descriptor/output.hpp b/ngraph/core/include/ngraph/descriptor/output.hpp index c0695faaaa8..0d47d0b5821 100644 --- a/ngraph/core/include/ngraph/descriptor/output.hpp +++ b/ngraph/core/include/ngraph/descriptor/output.hpp @@ -40,6 +40,9 @@ namespace ngraph public: Output() : m_node(nullptr) + , m_index(0) + , m_tensor(nullptr) + , m_inputs() { } diff --git a/ngraph/core/include/ngraph/enum_names.hpp b/ngraph/core/include/ngraph/enum_names.hpp index 5d84e1ab40e..b3321212269 100644 --- a/ngraph/core/include/ngraph/enum_names.hpp +++ b/ngraph/core/include/ngraph/enum_names.hpp @@ -35,7 +35,9 @@ namespace ngraph { auto to_lower = [](const std::string& s) { std::string rc = s; - std::transform(rc.begin(), rc.end(), rc.begin(), ::tolower); + std::transform(rc.begin(), rc.end(), rc.begin(), [](char c) { + return static_cast(::tolower(static_cast(c))); + }); return rc; }; for (auto p : get().m_string_enums)