Commit 1da7edcd authored by Alexander Alekhin's avatar Alexander Alekhin

cmake: disable ICC warnings from protobuf code

parent e40c23e9
...@@ -22,6 +22,11 @@ else() ...@@ -22,6 +22,11 @@ else()
-Wunused-function -Wunused-const-variable -Wunused-function -Wunused-const-variable
) )
endif() endif()
if(CV_ICC)
ocv_warnings_disable(CMAKE_CXX_FLAGS
-wd265 -wd858 -wd873 -wd2196
)
endif()
# Easier to support different versions of protobufs # Easier to support different versions of protobufs
function(append_if_exist OUTPUT_LIST) function(append_if_exist OUTPUT_LIST)
......
...@@ -47,8 +47,10 @@ endif() ...@@ -47,8 +47,10 @@ endif()
add_definitions(-DHAVE_PROTOBUF=1) add_definitions(-DHAVE_PROTOBUF=1)
#supress warnings in autogenerated caffe.pb.* files #supress warnings in autogenerated caffe.pb.* files
ocv_warnings_disable(CMAKE_CXX_FLAGS -Wunused-parameter -Wundef -Wignored-qualifiers -Wno-enum-compare ocv_warnings_disable(CMAKE_CXX_FLAGS
-Wdeprecated-declarations) -Wunused-parameter -Wundef -Wignored-qualifiers -Wno-enum-compare
ocv_warnings_disable(CMAKE_CXX_FLAGS /wd4125 /wd4267 /wd4127 /wd4244 /wd4512 /wd4702 -Wdeprecated-declarations
/wd4456 /wd4510 /wd4610 /wd4800 /wd4125 /wd4267 /wd4127 /wd4244 /wd4512 /wd4702
/wd4456 /wd4510 /wd4610 /wd4800
-wd858 -wd2196
) )
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment