mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 23:33:05 +04:00
Fixes for issues found by PVS Studio.
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
// disable MSVC warning on "multiple copy constructors specified"
|
||||
#pragma warning(push)
|
||||
# pragma warning(disable: 4521)
|
||||
#endif
|
||||
|
||||
@@ -184,7 +185,7 @@ namespace util
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
// Enable "multiple copy constructors specified" back
|
||||
# pragma warning(default: 4521)
|
||||
# pragma warning(pop)
|
||||
#endif
|
||||
|
||||
#endif // OPENCV_GAPI_UTIL_ANY_HPP
|
||||
|
||||
@@ -67,7 +67,7 @@ cv::GMetaArg QueueSourceBase::descr_of() const {
|
||||
|
||||
QueueInput::QueueInput(const cv::GMetaArgs &args) {
|
||||
for (auto &&m : args) {
|
||||
m_sources.emplace_back(new cv::gapi::wip::QueueSourceBase(m));
|
||||
m_sources.emplace_back(std::make_shared<cv::gapi::wip::QueueSourceBase>(m));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -359,7 +359,7 @@ TYPED_TEST_CASE_P(cancel);
|
||||
|
||||
TYPED_TEST_P(cancel, basic)
|
||||
{
|
||||
#if defined(__GNUC__) && __GNUC__ >= 11
|
||||
#if defined(__GNUC__) && __GNUC__ == 11
|
||||
// std::vector<TypeParam> requests can't handle type with ctor parameter (SelfCanceling)
|
||||
FAIL() << "Test code is not available due to compilation error with GCC 11";
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user