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;
protected:
~IExecutableNetworkInternal() = default;
virtual ~IExecutableNetworkInternal() = default;
/**
* @brief Creates an inference request internal implementation.

View File

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

View File

@ -143,7 +143,7 @@ private:
private:
std::shared_ptr<InferenceEngine::ICore> _core;
InferenceEngine::IStreamsExecutor::Ptr _executor;
MultiDeviceInferencePlugin* _multiPlugin;
MultiDeviceInferencePlugin* _multiPlugin = nullptr;
AutoContext _context;
bool _workModeIsAUTO = {false};
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];
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);
std::lock_guard<std::mutex> autoLock(mutex);
print(stream);