projects
/
platform
/
upstream
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d386760
)
Removed UNUSED macro
author
Ruslan Garnov
<ruslan.garnov@intel.com>
Thu, 13 Dec 2018 11:36:15 +0000
(14:36 +0300)
committer
Ruslan Garnov
<ruslan.garnov@intel.com>
Thu, 13 Dec 2018 11:39:33 +0000
(14:39 +0300)
modules/gapi/include/opencv2/gapi/util/compiler_hints.hpp
patch
|
blob
|
history
modules/gapi/src/backends/fluid/gfluidcore.cpp
patch
|
blob
|
history
modules/gapi/src/backends/fluid/gfluidutils.hpp
patch
|
blob
|
history
diff --git
a/modules/gapi/include/opencv2/gapi/util/compiler_hints.hpp
b/modules/gapi/include/opencv2/gapi/util/compiler_hints.hpp
index
575655e
..
a41a971
100644
(file)
--- a/
modules/gapi/include/opencv2/gapi/util/compiler_hints.hpp
+++ b/
modules/gapi/include/opencv2/gapi/util/compiler_hints.hpp
@@
-16,6
+16,4
@@
namespace util
} // namespace util
} // namespace cv
-#define UNUSED(x) cv::util::suppress_unused_warning(x)
-
#endif /* OPENCV_GAPI_UTIL_COMPILER_HINTS_HPP */
diff --git
a/modules/gapi/src/backends/fluid/gfluidcore.cpp
b/modules/gapi/src/backends/fluid/gfluidcore.cpp
index
16a63e2
..
b58ec07
100644
(file)
--- a/
modules/gapi/src/backends/fluid/gfluidcore.cpp
+++ b/
modules/gapi/src/backends/fluid/gfluidcore.cpp
@@
-340,7
+340,7
@@
static void run_arithm_s3(uchar out[], const uchar in[], int width, const uchar
v_store_interleave(&out[3*w], x, y, z);
}
#endif
-
UNUSED
(v_op);
+
cv::util::suppress_unused_warning
(v_op);
for (; w < width; w++)
{
out[3*w ] = saturate<uchar>( s_op(in[3*w ], scalar[0]) );
@@
-386,7
+386,7
@@
static void run_arithm_s1(uchar out[], const float in[], int width, const float
v_store(&out[w], uc);
}
#endif
-
UNUSED
(v_op);
+
cv::util::suppress_unused_warning
(v_op);
for (; w < width; w++)
{
out[w] = saturate<uchar>(s_op(in[w], scalar[0]), std::roundf);
diff --git
a/modules/gapi/src/backends/fluid/gfluidutils.hpp
b/modules/gapi/src/backends/fluid/gfluidutils.hpp
index
a38b2f1
..
fa15ee9
100644
(file)
--- a/
modules/gapi/src/backends/fluid/gfluidutils.hpp
+++ b/
modules/gapi/src/backends/fluid/gfluidutils.hpp
@@
-10,7
+10,7
@@
#include <limits>
#include <type_traits>
-#include <opencv2/gapi/util/compiler_hints.hpp> //
UNUSED
+#include <opencv2/gapi/util/compiler_hints.hpp> //
suppress_unused_warning
#include <opencv2/gapi/own/saturate.hpp>
namespace cv {