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

@@ -14,6 +14,8 @@
//
// VulkanHpp Test: Compile only test for issue 467.
// Should be used on 64 bit only, as on 32 bit the test is ambiguous.
#define VULKAN_HPP_NO_EXCEPTIONS
#define VULKAN_HPP_DISPATCH_LOADER_DYNAMIC 1
@@ -21,12 +23,9 @@
VULKAN_HPP_DEFAULT_DISPATCH_LOADER_DYNAMIC_STORAGE
#if defined( __x86_64__ ) || defined( _M_X64 )
// On 32-bit systems the test is ambiguous.
int main( int /*argc*/, char ** /*argv*/ )
{
VkSurfaceKHR surface = 0;
auto uniqueSurface = vk::UniqueSurfaceKHR( surface, vk::Instance() );
return 0;
}
#endif