Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
1031dfe4
Commit
1031dfe4
authored
Apr 26, 2018
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #11402 from alalek:build_warnings
parents
79d41aad
2a330e30
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
OpenCVDetectCUDA.cmake
cmake/OpenCVDetectCUDA.cmake
+3
-0
cuda_gpu_mat.cpp
modules/core/src/cuda_gpu_mat.cpp
+4
-8
cap_openni2.cpp
modules/videoio/src/cap_openni2.cpp
+1
-0
No files found.
cmake/OpenCVDetectCUDA.cmake
View file @
1031dfe4
...
@@ -200,6 +200,9 @@ if(CUDA_FOUND)
...
@@ -200,6 +200,9 @@ if(CUDA_FOUND)
string
(
REPLACE
"-frtti"
""
${
var
}
"
${${
var
}}
"
)
string
(
REPLACE
"-frtti"
""
${
var
}
"
${${
var
}}
"
)
string
(
REPLACE
"-fvisibility-inlines-hidden"
""
${
var
}
"
${${
var
}}
"
)
string
(
REPLACE
"-fvisibility-inlines-hidden"
""
${
var
}
"
${${
var
}}
"
)
# cc1: warning: command line option '-Wsuggest-override' is valid for C++/ObjC++ but not for C
string
(
REPLACE
"-Wsuggest-override"
""
${
var
}
"
${${
var
}}
"
)
endforeach
()
endforeach
()
endmacro
()
endmacro
()
...
...
modules/core/src/cuda_gpu_mat.cpp
View file @
1031dfe4
...
@@ -344,13 +344,12 @@ void cv::cuda::ensureSizeIsEnough(int rows, int cols, int type, OutputArray arr)
...
@@ -344,13 +344,12 @@ void cv::cuda::ensureSizeIsEnough(int rows, int cols, int type, OutputArray arr)
GpuMat
cv
::
cuda
::
getInputMat
(
InputArray
_src
,
Stream
&
stream
)
GpuMat
cv
::
cuda
::
getInputMat
(
InputArray
_src
,
Stream
&
stream
)
{
{
GpuMat
src
;
#ifndef HAVE_CUDA
#ifndef HAVE_CUDA
(
void
)
_src
;
(
void
)
_src
;
(
void
)
stream
;
(
void
)
stream
;
throw_no_cuda
();
throw_no_cuda
();
#else
#else
GpuMat
src
;
if
(
_src
.
kind
()
==
_InputArray
::
CUDA_GPU_MAT
)
if
(
_src
.
kind
()
==
_InputArray
::
CUDA_GPU_MAT
)
{
{
src
=
_src
.
getGpuMat
();
src
=
_src
.
getGpuMat
();
...
@@ -361,15 +360,12 @@ GpuMat cv::cuda::getInputMat(InputArray _src, Stream& stream)
...
@@ -361,15 +360,12 @@ GpuMat cv::cuda::getInputMat(InputArray _src, Stream& stream)
src
=
pool
.
getBuffer
(
_src
.
size
(),
_src
.
type
());
src
=
pool
.
getBuffer
(
_src
.
size
(),
_src
.
type
());
src
.
upload
(
_src
,
stream
);
src
.
upload
(
_src
,
stream
);
}
}
#endif
return
src
;
return
src
;
#endif
}
}
GpuMat
cv
::
cuda
::
getOutputMat
(
OutputArray
_dst
,
int
rows
,
int
cols
,
int
type
,
Stream
&
stream
)
GpuMat
cv
::
cuda
::
getOutputMat
(
OutputArray
_dst
,
int
rows
,
int
cols
,
int
type
,
Stream
&
stream
)
{
{
GpuMat
dst
;
#ifndef HAVE_CUDA
#ifndef HAVE_CUDA
(
void
)
_dst
;
(
void
)
_dst
;
(
void
)
rows
;
(
void
)
rows
;
...
@@ -378,6 +374,7 @@ GpuMat cv::cuda::getOutputMat(OutputArray _dst, int rows, int cols, int type, St
...
@@ -378,6 +374,7 @@ GpuMat cv::cuda::getOutputMat(OutputArray _dst, int rows, int cols, int type, St
(
void
)
stream
;
(
void
)
stream
;
throw_no_cuda
();
throw_no_cuda
();
#else
#else
GpuMat
dst
;
if
(
_dst
.
kind
()
==
_InputArray
::
CUDA_GPU_MAT
)
if
(
_dst
.
kind
()
==
_InputArray
::
CUDA_GPU_MAT
)
{
{
_dst
.
create
(
rows
,
cols
,
type
);
_dst
.
create
(
rows
,
cols
,
type
);
...
@@ -388,9 +385,8 @@ GpuMat cv::cuda::getOutputMat(OutputArray _dst, int rows, int cols, int type, St
...
@@ -388,9 +385,8 @@ GpuMat cv::cuda::getOutputMat(OutputArray _dst, int rows, int cols, int type, St
BufferPool
pool
(
stream
);
BufferPool
pool
(
stream
);
dst
=
pool
.
getBuffer
(
rows
,
cols
,
type
);
dst
=
pool
.
getBuffer
(
rows
,
cols
,
type
);
}
}
#endif
return
dst
;
return
dst
;
#endif
}
}
void
cv
::
cuda
::
syncOutput
(
const
GpuMat
&
dst
,
OutputArray
_dst
,
Stream
&
stream
)
void
cv
::
cuda
::
syncOutput
(
const
GpuMat
&
dst
,
OutputArray
_dst
,
Stream
&
stream
)
...
...
modules/videoio/src/cap_openni2.cpp
View file @
1031dfe4
...
@@ -490,6 +490,7 @@ double CvCapture_OpenNI2::getCommonProperty( int propIdx ) const
...
@@ -490,6 +490,7 @@ double CvCapture_OpenNI2::getCommonProperty( int propIdx ) const
break
;
break
;
case
CV_CAP_PROP_OPENNI2_SYNC
:
case
CV_CAP_PROP_OPENNI2_SYNC
:
propValue
=
const_cast
<
CvCapture_OpenNI2
*>
(
this
)
->
device
.
getDepthColorSyncEnabled
();
propValue
=
const_cast
<
CvCapture_OpenNI2
*>
(
this
)
->
device
.
getDepthColorSyncEnabled
();
break
;
case
CV_CAP_PROP_OPENNI2_MIRROR
:
case
CV_CAP_PROP_OPENNI2_MIRROR
:
{
{
bool
isMirroring
=
false
;
bool
isMirroring
=
false
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment