1
0
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:
Alexander Smorkalov
2025-12-16 18:34:20 +03:00
parent 2a29d87e1d
commit 9f1a2d3736
3 changed files with 4 additions and 3 deletions
@@ -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
+1 -1
View File
@@ -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));
}
}
+1 -1
View File
@@ -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