Silent warnings on unused variables in some tests; make test UniqueHandleDefaultArguments part of the solution for 64 bit only. (#1704)

This commit is contained in:
Andreas Süßenbach
2023-10-18 13:45:14 +02:00
committed by GitHub
parent 5b6f6faf7a
commit 3e0d722ca5
5 changed files with 35 additions and 14 deletions

View File

@@ -15,6 +15,16 @@
// VulkanHpp Samples : StridedArrayProxy
// Compile test on using vk::StridedArrayProxy
#if defined( _MSC_VER )
// no need to ignore any warnings with MSVC
#elif defined( __clang__ )
# pragma clang diagnostic ignored "-Wunused-variable"
#elif defined( __GNUC__ )
# pragma GCC diagnostic ignored "-Wunused-but-set-variable"
#else
// unknow compiler... just ignore the warnings for yourselves ;)
#endif
#include <iostream>
#include <vulkan/vulkan.hpp>
#if ( 20 <= VULKAN_HPP_CPP_VERSION )