-
-
Notifications
You must be signed in to change notification settings - Fork 56.5k
G-API: build warnings with GCC 9 #15903
Copy link
Copy link
Closed
Description
build/precommit_custom_linux/opencv/modules/gapi/src/backends/fluid/gfluidbuffer.cpp: In function 'std::unique_ptr<cv::gapi::fluid::BufferStorage> cv::gapi::fluid::{anonymous}::createStorage(int, int, int, int, cv::gapi::fluid::BorderOpt)':
/build/precommit_custom_linux/opencv/modules/gapi/src/backends/fluid/gfluidbuffer.cpp:350:25: warning: redundant move in return statement [-Wredundant-move]
350 | return std::move(storage);
| ~~~~~~~~~^~~~~~~~~
/build/precommit_custom_linux/opencv/modules/gapi/src/backends/fluid/gfluidbuffer.cpp:350:25: note: remove 'std::move' call
/build/precommit_custom_linux/opencv/modules/gapi/src/backends/fluid/gfluidbuffer.cpp:355:21: warning: redundant move in return statement [-Wredundant-move]
355 | return std::move(storage);
| ~~~~~~~~~^~~~~~~~~
/build/precommit_custom_linux/opencv/modules/gapi/src/backends/fluid/gfluidbuffer.cpp:355:21: note: remove 'std::move' call
/build/precommit_custom_linux/opencv/modules/gapi/src/backends/fluid/gfluidbuffer.cpp: In function 'std::unique_ptr<cv::gapi::fluid::BufferStorage> cv::gapi::fluid::{anonymous}::createStorage(const cv::gapi::own::Mat&, cv::gapi::own::Rect)':
/build/precommit_custom_linux/opencv/modules/gapi/src/backends/fluid/gfluidbuffer.cpp:363:21: warning: redundant move in return statement [-Wredundant-move]
363 | return std::move(storage);
| ~~~~~~~~~^~~~~~~~~
/build/precommit_custom_linux/opencv/modules/gapi/src/backends/fluid/gfluidbuffer.cpp:363:21: note: remove 'std::move' call
can be validated through Fedora 31 build image.
force_builder=Custom
buildworker:Custom=linux-1
build_image:Custom=fedora:31
Reactions are currently unavailable