warning message is way too scary (#3805)
People keep complaining they can't compile on ubuntu 16.04 because of this warning message, while it just disables 2 "prettyness" warnings and only in the automatically generated code by protobuf which should never be a problem anyway! original pr: #3432
This commit is contained in:
parent
53728598fe
commit
257f2eb34c
1 changed files with 3 additions and 2 deletions
|
@ -176,6 +176,7 @@ if(${Protobuf_VERSION} VERSION_LESS "3.1.0")
|
||||||
# remove unused parameter and misleading indentation warnings when compiling to avoid errors
|
# remove unused parameter and misleading indentation warnings when compiling to avoid errors
|
||||||
set(CMAKE_CXX_FLAGS_DEBUG
|
set(CMAKE_CXX_FLAGS_DEBUG
|
||||||
"${CMAKE_CXX_FLAGS_DEBUG} -Wno-unused-parameter -Wno-misleading-indentation")
|
"${CMAKE_CXX_FLAGS_DEBUG} -Wno-unused-parameter -Wno-misleading-indentation")
|
||||||
message(WARNING "Outdated protobuf version found (${Protobuf_VERSION} < 3.1.0), "
|
message(WARNING "Older protobuf version found (${Protobuf_VERSION} < 3.1.0), "
|
||||||
"disabled warnings to avoid compilation errors.")
|
"disabled the warnings 'unused-parameter' and 'misleading-indentation' for protobuf generated code "
|
||||||
|
"to avoid compilation errors.")
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in a new issue