aboutsummaryrefslogtreecommitdiff
path: root/ports/flatbuffers/no-werror.patch
diff options
context:
space:
mode:
authorPhil Christensen <philc@microsoft.com>2018-12-13 11:13:43 -0800
committerPhil Christensen <philc@microsoft.com>2018-12-13 11:13:43 -0800
commit5fc3a10651dc80201b4a870043a0cef6b3c72ff3 (patch)
tree22a3a9073a29a555540539f1c5f6c0f5360b506d /ports/flatbuffers/no-werror.patch
parent9e773bd912e42a413f87e9fb1a6712461e10c4bf (diff)
parente04b4ed5b5ff5c1b61e5ce3d70ac101ffe3237c4 (diff)
downloadvcpkg-5fc3a10651dc80201b4a870043a0cef6b3c72ff3.tar.gz
vcpkg-5fc3a10651dc80201b4a870043a0cef6b3c72ff3.zip
Merge branch 'master' of https://github.com/microsoft/vcpkg into dev/philc/4914
Diffstat (limited to 'ports/flatbuffers/no-werror.patch')
-rw-r--r--ports/flatbuffers/no-werror.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/ports/flatbuffers/no-werror.patch b/ports/flatbuffers/no-werror.patch
new file mode 100644
index 000000000..7c2d548b9
--- /dev/null
+++ b/ports/flatbuffers/no-werror.patch
@@ -0,0 +1,23 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index a3388dd..f0626e5 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -119,12 +119,16 @@ 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")
+ if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 4.4)
+ if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.0)
+ set(CMAKE_CXX_FLAGS
+ "${CMAKE_CXX_FLAGS} -faligned-new")
+ endif()
++ if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.0)
++ set(CMAKE_CXX_FLAGS
++ "${CMAKE_CXX_FLAGS} -Wextra")
++ endif()
+ set(CMAKE_CXX_FLAGS
+ "${CMAKE_CXX_FLAGS} -Wunused-result -Werror=unused-result -Wunused-parameter -Werror=unused-parameter")
+ endif()
+