mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 07:43:03 +04:00
Merge pull request #23109 from seanm:misc-warnings
* Fixed clang -Wnewline-eof warnings * Fixed all trivial clang -Wextra-semi and -Wc++98-compat-extra-semi warnings * Removed trailing semi from various macros * Fixed various -Wunused-macros warnings * Fixed some trivial -Wdocumentation warnings * Fixed some -Wdocumentation-deprecated-sync warnings * Fixed incorrect indentation * Suppressed some clang warnings in 3rd party code * Fixed QRCodeEncoder::Params documentation. --------- Co-authored-by: Alexander Smorkalov <alexander.smorkalov@xperience.ai>
This commit is contained in:
@@ -8,9 +8,8 @@
|
||||
#include <map> // map
|
||||
#include <ade/util/zip_range.hpp> // indexed
|
||||
|
||||
#define NOMINMAX
|
||||
|
||||
#ifdef _WIN32
|
||||
#define NOMINMAX
|
||||
#include <winsock.h> // htonl, ntohl
|
||||
#else
|
||||
#include <netinet/in.h> // htonl, ntohl
|
||||
|
||||
@@ -195,7 +195,7 @@ class GAPI_EXPORTS ByteMemoryInStream final: public IIStream {
|
||||
size_t m_idx = 0u;
|
||||
|
||||
void check(std::size_t n) { (void) n; GAPI_DbgAssert(m_idx+n-1 < m_storage.size()); }
|
||||
uint32_t getU32() { uint32_t v{}; *this >> v; return v; };
|
||||
uint32_t getU32() { uint32_t v{}; *this >> v; return v; }
|
||||
|
||||
//virtual IIStream& operator>> (uint32_t &) final;
|
||||
|
||||
|
||||
@@ -159,7 +159,7 @@ struct Copy: public cv::detail::KernelTag
|
||||
return cv::gapi::streaming::IActor::Ptr(new Actor(args));
|
||||
}
|
||||
|
||||
static cv::gapi::streaming::GStreamingKernel kernel() { return {&create}; };
|
||||
static cv::gapi::streaming::GStreamingKernel kernel() { return {&create}; }
|
||||
};
|
||||
|
||||
void Copy::Actor::run(cv::gimpl::GIslandExecutable::IInput &in,
|
||||
@@ -249,7 +249,7 @@ struct GOCVBGR: public cv::detail::KernelTag
|
||||
{
|
||||
return cv::gapi::streaming::IActor::Ptr(new Actor(args));
|
||||
}
|
||||
static cv::gapi::streaming::GStreamingKernel kernel() { return {&create}; };
|
||||
static cv::gapi::streaming::GStreamingKernel kernel() { return {&create}; }
|
||||
};
|
||||
|
||||
void GOCVBGR::Actor::extractRMat(const cv::MediaFrame& frame, cv::RMat& rmat)
|
||||
@@ -323,7 +323,7 @@ struct GOCVY: public cv::detail::KernelTag
|
||||
{
|
||||
return cv::gapi::streaming::IActor::Ptr(new Actor(args));
|
||||
}
|
||||
static cv::gapi::streaming::GStreamingKernel kernel() { return {&create}; };
|
||||
static cv::gapi::streaming::GStreamingKernel kernel() { return {&create}; }
|
||||
};
|
||||
|
||||
void GOCVY::Actor::extractRMat(const cv::MediaFrame& frame, cv::RMat& rmat)
|
||||
@@ -389,7 +389,7 @@ struct GOCVUV: public cv::detail::KernelTag
|
||||
{
|
||||
return cv::gapi::streaming::IActor::Ptr(new Actor(args));
|
||||
}
|
||||
static cv::gapi::streaming::GStreamingKernel kernel() { return {&create}; };
|
||||
static cv::gapi::streaming::GStreamingKernel kernel() { return {&create}; }
|
||||
};
|
||||
|
||||
void GOCVUV::Actor::extractRMat(const cv::MediaFrame& frame, cv::RMat& rmat)
|
||||
|
||||
Reference in New Issue
Block a user