提交 35333005 编写于 作者: G Gines Hidalgo

Removed CLang warnings

Signed-off-by: NGines Hidalgo <gineshidalgo99@gmail.com>
上级 74405299
......@@ -421,8 +421,9 @@ OpenPose Library - Release Notes
3. Added Asynchronous mode to Python API.
4. Added `DOWNLOAD_SERVER` variable to CMake. It specifies the link where the models and 3rd party libraries will be downloaded from.
5. Installation documentation highly simplified and improved.
6. Removed all compiler warnings for Ubuntu 20.04 and removed some for Windows 10.
6. Removed all compiler warnings for Ubuntu 20.04 (GCC and Clang) as well as some for Windows 10.
2. Functions or parameters renamed:
1. `USE_MKL` disabled by default in Ubuntu. Reason: Not compatible with non-intel CPUs and Ubuntu 20.
3. Main bugs fixed:
1. 90 and 270-degree rotations working again.
2. C++ tutorial API demos only try to cv::imshow the image if it is not empty (avoding the assert that it would trigger otherwise).
......
......@@ -120,7 +120,7 @@ namespace op
{
stopAndJoin();
spIsRunning = isRunningSharedPtr;
*spIsRunning = {true};
*spIsRunning = true;
threadFunction();
}
catch (const std::exception& e)
......@@ -136,7 +136,7 @@ namespace op
{
opLog("", Priority::Low, __LINE__, __FUNCTION__, __FILE__);
stopAndJoin();
*spIsRunning = {true};
*spIsRunning = true;
mThread = {std::thread{&Thread::threadFunction, this}};
}
catch (const std::exception& e)
......@@ -209,7 +209,7 @@ namespace op
{
try
{
*spIsRunning = {false};
*spIsRunning = false;
}
catch (const std::exception& e)
{
......
......@@ -21,6 +21,7 @@ namespace op
catch (const std::exception& e)
{
error(e.what(), __LINE__, __FUNCTION__, __FILE__);
return false;
}
}
......
......@@ -104,6 +104,7 @@ namespace op
catch (const std::exception& e)
{
error(e.what(), __LINE__, __FUNCTION__, __FILE__);
return nullptr;
}
}
......@@ -116,6 +117,7 @@ namespace op
catch (const std::exception& e)
{
error(e.what(), __LINE__, __FUNCTION__, __FILE__);
return nullptr;
}
}
......
......@@ -344,7 +344,7 @@ namespace op
opLog("Property " + std::to_string((int)property)
+ " set from " + std::to_string(propertyElement)
+ " to " + std::to_string(value), Priority::High);
propertyElement = {value};
propertyElement = value;
}
catch (const std::exception& e)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册