mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 07:43:03 +04:00
Fix some clang 14 warnings
This commit is contained in:
@@ -664,7 +664,6 @@ static cv::GRunArgs run_py_kernel(cv::detail::PyObjectHolder kernel,
|
||||
cv::GRunArgs outs;
|
||||
try
|
||||
{
|
||||
int in_idx = 0;
|
||||
// NB: Doesn't increase reference counter (false),
|
||||
// because PyObject already have ownership.
|
||||
// In case exception decrement reference counter.
|
||||
@@ -697,7 +696,6 @@ static cv::GRunArgs run_py_kernel(cv::detail::PyObjectHolder kernel,
|
||||
util::throw_error(std::logic_error("GFrame isn't supported for custom operation"));
|
||||
break;
|
||||
}
|
||||
++in_idx;
|
||||
}
|
||||
|
||||
if (ctx.m_state.has_value())
|
||||
|
||||
@@ -27,7 +27,7 @@ class GMockExecutable final: public cv::gimpl::GIslandExecutable
|
||||
m_priv->m_reshape_counter++;
|
||||
}
|
||||
virtual void handleNewStream() override { }
|
||||
virtual void run(std::vector<InObj>&&, std::vector<OutObj>&&) { }
|
||||
virtual void run(std::vector<InObj>&&, std::vector<OutObj>&&) override { }
|
||||
virtual bool allocatesOutputs() const override
|
||||
{
|
||||
return true;
|
||||
|
||||
@@ -190,7 +190,7 @@ public:
|
||||
: cv::gapi::wip::GCaptureSource(pipeline) {
|
||||
}
|
||||
|
||||
bool pull(cv::gapi::wip::Data& data) {
|
||||
bool pull(cv::gapi::wip::Data& data) override {
|
||||
if (cv::gapi::wip::GCaptureSource::pull(data)) {
|
||||
data = cv::MediaFrame::Create<TestMediaBGR>(cv::util::get<cv::Mat>(data));
|
||||
return true;
|
||||
@@ -232,7 +232,7 @@ public:
|
||||
: cv::gapi::wip::GCaptureSource(pipeline) {
|
||||
}
|
||||
|
||||
bool pull(cv::gapi::wip::Data& data) {
|
||||
bool pull(cv::gapi::wip::Data& data) override {
|
||||
if (cv::gapi::wip::GCaptureSource::pull(data)) {
|
||||
cv::Mat bgr = cv::util::get<cv::Mat>(data);
|
||||
cv::Mat y, uv;
|
||||
@@ -256,7 +256,7 @@ public:
|
||||
: cv::gapi::wip::GCaptureSource(pipeline) {
|
||||
}
|
||||
|
||||
bool pull(cv::gapi::wip::Data& data) {
|
||||
bool pull(cv::gapi::wip::Data& data) override {
|
||||
if (cv::gapi::wip::GCaptureSource::pull(data)) {
|
||||
cv::Mat bgr = cv::util::get<cv::Mat>(data);
|
||||
cv::Mat gray;
|
||||
@@ -319,7 +319,7 @@ public:
|
||||
return "InvalidSource sucessfuly failed!";
|
||||
}
|
||||
|
||||
bool pull(cv::gapi::wip::Data& d) {
|
||||
bool pull(cv::gapi::wip::Data& d) override {
|
||||
++m_curr_frame_id;
|
||||
if (m_curr_frame_id > m_num_frames) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user