diff --git a/modules/gpu/src/cuda/matrix_reductions.cu b/modules/gpu/src/cuda/matrix_reductions.cu index 1dfd4b3b3..e5c0c56d6 100644 --- a/modules/gpu/src/cuda/matrix_reductions.cu +++ b/modules/gpu/src/cuda/matrix_reductions.cu @@ -1820,7 +1820,7 @@ namespace cv { namespace gpu { namespace mathfunc return a + b; } - __device__ __forceinline S result(S r, double) const + __device__ __forceinline__ S result(S r, double) const { return r; } @@ -1838,7 +1838,7 @@ namespace cv { namespace gpu { namespace mathfunc return a + b; } - __device__ __forceinline double result(S r, double sz) const + __device__ __forceinline__ double result(S r, double sz) const { return r / sz; } @@ -1860,7 +1860,7 @@ namespace cv { namespace gpu { namespace mathfunc return ::fmin(a, b); } - __device__ __forceinline S result(S r, double) const + __device__ __forceinline__ S result(S r, double) const { return r; } @@ -1882,7 +1882,7 @@ namespace cv { namespace gpu { namespace mathfunc return ::fmax(a, b); } - __device__ __forceinline S result(S r, double) const + __device__ __forceinline__ S result(S r, double) const { return r; } @@ -2101,4 +2101,4 @@ namespace cv { namespace gpu { namespace mathfunc template void reduceCols_gpu(const DevMem2D& src, int cn, const DevMem2D& dst, int reduceOp, cudaStream_t stream); template void reduceCols_gpu(const DevMem2D& src, int cn, const DevMem2D& dst, int reduceOp, cudaStream_t stream); - }}} \ No newline at end of file + }}}