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
667cb2e9
Commit
667cb2e9
authored
Dec 15, 2016
by
Alexander Alekhin
Committed by
GitHub
Dec 15, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7867 from alalek:cuda_warnings_2.4
(2.4) Fix CUDA warnings
parents
7db13c7a
03beff06
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
CMakeLists.txt
modules/gpu/CMakeLists.txt
+1
-1
NCVHaarObjectDetection.hpp
modules/gpu/src/nvidia/NCVHaarObjectDetection.hpp
+8
-0
No files found.
modules/gpu/CMakeLists.txt
View file @
667cb2e9
...
...
@@ -29,7 +29,7 @@ if(HAVE_CUDA)
source_group
(
"Src
\\
NVidia"
FILES
${
ncv_files
}
)
ocv_include_directories
(
"src/nvidia"
"src/nvidia/core"
"src/nvidia/NPP_staging"
${
CUDA_INCLUDE_DIRS
}
)
ocv_warnings_disable
(
CMAKE_CXX_FLAGS -Wundef -Wmissing-declarations -Wshadow -Wunused-parameter /wd4211 /wd4201 /wd4100 /wd4505 /wd4408
)
ocv_warnings_disable
(
CMAKE_CXX_FLAGS -Wundef -Wmissing-declarations -Wshadow -Wunused-parameter
-Wstrict-aliasing
/wd4211 /wd4201 /wd4100 /wd4505 /wd4408
)
if
(
MSVC
)
if
(
NOT ENABLE_NOISY_WARNINGS
)
...
...
modules/gpu/src/nvidia/NCVHaarObjectDetection.hpp
View file @
667cb2e9
...
...
@@ -59,6 +59,11 @@
#ifndef _ncvhaarobjectdetection_hpp_
#define _ncvhaarobjectdetection_hpp_
#ifdef __GNUC__
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif
#include <string>
#include "NCV.hpp"
...
...
@@ -458,5 +463,8 @@ NCV_EXPORTS NCVStatus ncvHaarStoreNVBIN_host(const std::string &filename,
NCVVector
<
HaarFeature64
>
&
h_HaarFeatures
);
#ifdef __GNUC__
# pragma GCC diagnostic pop
#endif
#endif // _ncvhaarobjectdetection_hpp_
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