Use [[maybe_unused]] in tests
authorCharles Giessen <charles@lunarg.com>
Sun, 18 Jun 2023 22:42:29 +0000 (16:42 -0600)
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>
Tue, 20 Jun 2023 19:49:58 +0000 (13:49 -0600)
commitc9b87f85b8d4364edcd860ec63ac99b5ba144305
tree105330261edefdeb188fcf792f576af777d93462
parenta490c86ae8ef7095ccc6c5d9e92debc16b0a0aff
Use [[maybe_unused]] in tests

Many components of the test framework have functions where not all parameters
are used, necessitating marking the parameter as unused. Before C++17, this was
done with `(void)parameter;` syntax, but now can be done more cleanly.
12 files changed:
tests/framework/icd/test_icd.cpp
tests/framework/layer/test_layer.cpp
tests/framework/layer/wrap_objects.cpp
tests/framework/shim/shim_common.cpp
tests/framework/shim/windows_shim.cpp
tests/framework/test_environment.cpp
tests/framework/test_environment.h
tests/framework/test_util.h
tests/loader_alloc_callback_tests.cpp
tests/loader_debug_ext_tests.cpp
tests/loader_handle_validation_tests.cpp
tests/loader_settings_tests.cpp