diff --git a/modules/dnn/CMakeLists.txt b/modules/dnn/CMakeLists.txt index 7391f6426..d1eb3161c 100644 --- a/modules/dnn/CMakeLists.txt +++ b/modules/dnn/CMakeLists.txt @@ -14,6 +14,8 @@ else() message(FATAL_ERROR "Could not find PROTOBUF Compiler") endif() +ocv_warnings_disable(CMAKE_CXX_FLAGS -Wno-shadow -Wno-parentheses) + file(GLOB PROTO_FILES src/*.proto) PROTOBUF_GENERATE_CPP(PROTO_HDRS PROTO_SRCS ${PROTO_FILES})