diff options
Diffstat (limited to 'community/flatbuffers/disable-Werror.patch')
-rw-r--r-- | community/flatbuffers/disable-Werror.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/community/flatbuffers/disable-Werror.patch b/community/flatbuffers/disable-Werror.patch new file mode 100644 index 00000000000..f597dcef9ab --- /dev/null +++ b/community/flatbuffers/disable-Werror.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 3987eac..973e158 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -223,7 +223,7 @@ elseif(CMAKE_COMPILER_IS_GNUCXX) + "${CMAKE_CXX_FLAGS} -std=c++0x") + endif(CYGWIN) + set(CMAKE_CXX_FLAGS +- "${CMAKE_CXX_FLAGS} -Wall -pedantic -Werror -Wextra -Werror=shadow") ++ "${CMAKE_CXX_FLAGS} -Wall -pedantic -Wextra -Werror=shadow") + set(FLATBUFFERS_PRIVATE_CXX_FLAGS "-Wold-style-cast") + if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 4.4) + if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.0) |