]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Cmake MSVC: replace warning C4061 with C4062
authorMartin Matuska <martin@matuska.org>
Mon, 27 Jan 2020 23:25:53 +0000 (00:25 +0100)
committerMartin Matuska <martin@matuska.org>
Mon, 27 Jan 2020 23:25:53 +0000 (00:25 +0100)
Fixes #1322

CMakeLists.txt

index 9e46c6ca3fe9264956cfa66cea06789ec2b9906d..7a9f3d19ac0e941afdd67412a285a61ad72d9312 100644 (file)
@@ -155,9 +155,9 @@ 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 C4062: The enumerate has no associated handler in a switch
+  #                       statement and there is no default that can catch it.
+  SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} /we4062")
   # 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")