Enable /W4 errors and support clang-cl
authorCharles Giessen <charles@lunarg.com>
Tue, 29 Mar 2022 05:50:33 +0000 (23:50 -0600)
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>
Tue, 29 Mar 2022 22:10:30 +0000 (16:10 -0600)
commit336508b06bab741cf6b832c5b98026c852ba461f
treec8646ab9c6c1d5e24145e6d6c26196e2f421a37b
parentedc995aef7a8bbb00bbff9b18ab267de53815292
Enable /W4 errors and support clang-cl

Enable /W4 errors on MSVC and fix all corresponding errors.

Refactor the CMakeLists.txt to allow for compiling with clang-cl. This required
figuring out that -Wall -Wextra mangle the set of warnings used. The solution
is to use /W4 instead when compiling with clang-cl on Windows.
21 files changed:
CMakeLists.txt
loader/cJSON.c
loader/extension_manual.c
loader/generated/vk_dispatch_table_helper.h
loader/generated/vk_loader_extensions.h
loader/loader.c
loader/loader_common.h
loader/loader_windows.c
loader/vk_loader_platform.h
loader/wsi.c
scripts/dispatch_table_helper_generator.py
scripts/loader_extension_generator.py
tests/framework/CMakeLists.txt
tests/framework/icd/test_icd.cpp
tests/framework/layer/wrap_objects.cpp
tests/framework/shim/windows_shim.cpp
tests/framework/test_environment.cpp
tests/framework/test_environment.h
tests/framework/test_util.cpp
tests/framework/test_util.h
tests/loader_handle_validation_tests.cpp