try to fix klocwork issue (#9207)
Signed-off-by: Hu, Yuan2 <yuan2.hu@intel.com>
This commit is contained in:
parent
b6951bfb2c
commit
00361b7617
@ -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.
|
||||
|
@ -245,7 +245,7 @@ protected:
|
||||
/**
|
||||
* @brief Destroys the object.
|
||||
*/
|
||||
~IInferRequestInternal();
|
||||
virtual ~IInferRequestInternal();
|
||||
|
||||
/**
|
||||
* @brief Checks and executes input data pre-processing if needed.
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user