aboutsummaryrefslogtreecommitdiff
path: root/ports/libarchive/disable-c4061.patch
diff options
context:
space:
mode:
authorBilly O'Neal <bion@microsoft.com>2020-05-26 21:01:32 -0700
committerGitHub <noreply@github.com>2020-05-26 21:01:32 -0700
commitaf56d50d64d0473f48dc7d4acfabc1b91265cf3b (patch)
tree3eabfeb3e0e1669689d2ce4f8f788fe1d64715c3 /ports/libarchive/disable-c4061.patch
parentcb538ed22fabe3ef7b9847d6d2b6d85f0d185ec3 (diff)
downloadvcpkg-af56d50d64d0473f48dc7d4acfabc1b91265cf3b.tar.gz
vcpkg-af56d50d64d0473f48dc7d4acfabc1b91265cf3b.zip
[libarchive] Disable C4061 which causes build to fail in Visual Studio 2019 16.6 (#11570)
* [libarchive] Disable C4061 which causes build to fail in Visual Studio 2019 16.6 * Bump verison.
Diffstat (limited to 'ports/libarchive/disable-c4061.patch')
-rw-r--r--ports/libarchive/disable-c4061.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/ports/libarchive/disable-c4061.patch b/ports/libarchive/disable-c4061.patch
new file mode 100644
index 000000000..e09c9ca6e
--- /dev/null
+++ b/ports/libarchive/disable-c4061.patch
@@ -0,0 +1,14 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 911ae5b..0e12b56 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -151,9 +151,6 @@ IF (MSVC)
+ #################################################################
+ # Set compile flags for debug build.
+ # This is added into CMAKE_C_FLAGS when CMAKE_BUILD_TYPE is "Debug"
+- # Enable level 4 C4061: The enumerate has no associated handler in a switch
+- # statement.
+- SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} /we4061")
+ # Enable level 4 C4254: A larger bit field was assigned to a smaller bit
+ # field.
+ SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} /we4254")