Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
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_contrib
Commits
1da7edcd
Commit
1da7edcd
authored
Nov 25, 2016
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmake: disable ICC warnings from protobuf code
parent
e40c23e9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
CMakeLists.txt
modules/dnn/3rdparty/protobuf/CMakeLists.txt
+5
-0
OpenCVFindLibProtobuf.cmake
modules/dnn/cmake/OpenCVFindLibProtobuf.cmake
+6
-4
No files found.
modules/dnn/3rdparty/protobuf/CMakeLists.txt
View file @
1da7edcd
...
...
@@ -22,6 +22,11 @@ else()
-Wunused-function -Wunused-const-variable
)
endif
()
if
(
CV_ICC
)
ocv_warnings_disable
(
CMAKE_CXX_FLAGS
-wd265 -wd858 -wd873 -wd2196
)
endif
()
# Easier to support different versions of protobufs
function
(
append_if_exist OUTPUT_LIST
)
...
...
modules/dnn/cmake/OpenCVFindLibProtobuf.cmake
View file @
1da7edcd
...
...
@@ -47,8 +47,10 @@ endif()
add_definitions
(
-DHAVE_PROTOBUF=1
)
#supress warnings in autogenerated caffe.pb.* files
ocv_warnings_disable
(
CMAKE_CXX_FLAGS -Wunused-parameter -Wundef -Wignored-qualifiers -Wno-enum-compare
-Wdeprecated-declarations
)
ocv_warnings_disable
(
CMAKE_CXX_FLAGS /wd4125 /wd4267 /wd4127 /wd4244 /wd4512 /wd4702
/wd4456 /wd4510 /wd4610 /wd4800
ocv_warnings_disable
(
CMAKE_CXX_FLAGS
-Wunused-parameter -Wundef -Wignored-qualifiers -Wno-enum-compare
-Wdeprecated-declarations
/wd4125 /wd4267 /wd4127 /wd4244 /wd4512 /wd4702
/wd4456 /wd4510 /wd4610 /wd4800
-wd858 -wd2196
)
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