1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 00:03:03 +04:00

core: CV_NODISCARD macro with semantic of [[nodiscard]] attr

[[nodiscard]] is defined in C++17.
There is fallback alias for modern GCC / Clang compilers.
This commit is contained in:
Alexander Alekhin
2018-07-16 17:59:24 +03:00
parent 4a3dfffd46
commit b0ee5d9023
3 changed files with 27 additions and 7 deletions
+4 -2
View File
@@ -61,7 +61,8 @@ PERF_TEST_P(Size_MatType, Mat_Clone,
TEST_CYCLE()
{
source.clone();
Mat tmp = source.clone();
(void)tmp;
}
destination = source.clone();
@@ -88,7 +89,8 @@ PERF_TEST_P(Size_MatType, Mat_Clone_Roi,
TEST_CYCLE()
{
roi.clone();
Mat tmp = roi.clone();
(void)tmp;
}
destination = roi.clone();