try to fix klocwork issue (#9207)

Signed-off-by: Hu, Yuan2 <yuan2.hu@intel.com>
This commit is contained in:
Yuan Hu 2022-01-10 19:57:37 +08:00 committed by GitHub
parent b6951bfb2c
commit 00361b7617
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -149,7 +149,7 @@ public:
virtual std::shared_ptr<RemoteContext> GetContext() const; virtual std::shared_ptr<RemoteContext> GetContext() const;
protected: protected:
~IExecutableNetworkInternal() = default; virtual ~IExecutableNetworkInternal() = default;
/** /**
* @brief Creates an inference request internal implementation. * @brief Creates an inference request internal implementation.

View File

@ -245,7 +245,7 @@ protected:
/** /**
* @brief Destroys the object. * @brief Destroys the object.
*/ */
~IInferRequestInternal(); virtual ~IInferRequestInternal();
/** /**
* @brief Checks and executes input data pre-processing if needed. * @brief Checks and executes input data pre-processing if needed.

View File

@ -143,7 +143,7 @@ private:
private: private:
std::shared_ptr<InferenceEngine::ICore> _core; std::shared_ptr<InferenceEngine::ICore> _core;
InferenceEngine::IStreamsExecutor::Ptr _executor; InferenceEngine::IStreamsExecutor::Ptr _executor;
MultiDeviceInferencePlugin* _multiPlugin; MultiDeviceInferencePlugin* _multiPlugin = nullptr;
AutoContext _context; AutoContext _context;
bool _workModeIsAUTO = {false}; bool _workModeIsAUTO = {false};
mutable std::once_flag _oc; mutable std::once_flag _oc;

View File

@ -199,7 +199,7 @@ inline void Log::doLog(bool on, bool isTraceCallStack, LogLevel level, const cha
} }
char buffer[255]; char buffer[255];
std::string compatibleString = "%s" + std::string(fmt); std::string compatibleString = "%s" + std::string(fmt);
std::snprintf (&buffer[0], sizeof(buffer), compatibleString.c_str(), "", args...); std::snprintf(&buffer[0], sizeof(buffer), compatibleString.c_str(), "", args...);
stream << ' ' << buffer << suffix << colorEnd(level); stream << ' ' << buffer << suffix << colorEnd(level);
std::lock_guard<std::mutex> autoLock(mutex); std::lock_guard<std::mutex> autoLock(mutex);
print(stream); print(stream);