diff --git a/src/plugins/auto/CMakeLists.txt b/src/plugins/auto/CMakeLists.txt index 92ee7be0805..e6f55421708 100644 --- a/src/plugins/auto/CMakeLists.txt +++ b/src/plugins/auto/CMakeLists.txt @@ -5,10 +5,7 @@ if(NOT ENABLE_AUTO AND NOT ENABLE_MULTI) return() endif() -if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") - ie_add_compiler_flags(/wd4101) - ie_add_compiler_flags(/wd4267) -endif() + set (TARGET_NAME "openvino_auto_plugin") diff --git a/src/plugins/auto/auto_executable_network.cpp b/src/plugins/auto/auto_executable_network.cpp index 44cc5aa4f23..0ee7e392d20 100644 --- a/src/plugins/auto/auto_executable_network.cpp +++ b/src/plugins/auto/auto_executable_network.cpp @@ -96,7 +96,7 @@ IE::Parameter AutoExecutableNetwork::GetMetric(const std::string& name) const { METRIC_KEY(RANGE_FOR_STREAMS), options).as>(); upperBoundStreamsNum = std::get<1>(rangeOfStreams); - } catch (const IE::Exception& iie) { + } catch (const IE::Exception&) { LOG_DEBUG_TAG("GetMetric RANGE_FOR_STREAMS failed"); } if (!_autoSContext->_batchingDisabled) { diff --git a/src/plugins/auto/auto_schedule.cpp b/src/plugins/auto/auto_schedule.cpp index d0631dc19ad..8c89d5309e4 100644 --- a/src/plugins/auto/auto_schedule.cpp +++ b/src/plugins/auto/auto_schedule.cpp @@ -392,7 +392,7 @@ void AutoSchedule::TryToLoadNetWork(AutoLoadContext& context, const std::string& std::lock_guard lock(_autoSContext->_confMutex); context.deviceInfo = _autoSContext->_plugin->SelectDevice(deviceList, context.networkPrecision, _autoSContext->_modelPriority); - } catch (const std::exception& e) { + } catch (const std::exception&) { return; } // if the select device is CPU, need to check the config of _loadContext[CPU] diff --git a/src/plugins/auto/auto_schedule.hpp b/src/plugins/auto/auto_schedule.hpp index ef0b747f6d9..86da80d9bb7 100644 --- a/src/plugins/auto/auto_schedule.hpp +++ b/src/plugins/auto/auto_schedule.hpp @@ -66,7 +66,7 @@ private: std::future _firstLoadFuture; std::promise _firstLoadPromise; bool _exitFlag = {false}; - unsigned int _cpuHelpInferCount = 0; + size_t _cpuHelpInferCount = 0; std::atomic_size_t _numRequestsCreated = {0}; AutoScheduleContext::Ptr _autoSContext; }; diff --git a/src/plugins/auto/multi_schedule.cpp b/src/plugins/auto/multi_schedule.cpp index b528f8c7f16..0d6858b30e0 100644 --- a/src/plugins/auto/multi_schedule.cpp +++ b/src/plugins/auto/multi_schedule.cpp @@ -237,7 +237,7 @@ MultiSchedule::~MultiSchedule() { reqAllStartTimes.splice(reqAllStartTimes.end(), request._startTimes); reqAllEndTimes.splice(reqAllEndTimes.end(), request._endTimes); } - unsigned int count = reqAllStartTimes.size(); + size_t count = reqAllStartTimes.size(); IE_ASSERT(count == reqAllEndTimes.size()); reqAllStartTimes.sort(std::less