]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Use /w1nnnn instead of /wennnn to enable warnings on MSVC Debug mode 1361/head
authorDavid Capello <davidcapello@gmail.com>
Sat, 18 Apr 2020 18:09:43 +0000 (15:09 -0300)
committerDavid Capello <davidcapello@gmail.com>
Sat, 18 Apr 2020 18:40:14 +0000 (15:40 -0300)
commit91e015d4f1aebc4c3c4fdf981485d999a5dd75f2
tree552576ab33813592bc6cf97c7798de83c9142aac
parentc17709fca64307edc6e1f15b5bb7a648271edadb
Use /w1nnnn instead of /wennnn to enable warnings on MSVC Debug mode

On MSVC /wennnn treats the specific warning number nnnn as an error:
https://docs.microsoft.com/en-us/cpp/build/reference/compiler-option-warning-level

But we want to enable this only when ENABLE_WERROR is defined (so the
general /WX flag is enough to treat all warnings as errors instead of
using /we).
CMakeLists.txt