mirror of
https://github.com/KhronosGroup/Vulkan-Hpp
synced 2024-11-22 12:20:05 +00:00
Disable init-list-lifetime warning with tests in ArrayProxyNoTemporaries.cpp
This commit is contained in:
parent
9cdca0a90d
commit
bde88d1c87
@ -15,13 +15,20 @@
|
||||
// VulkanHpp Samples : ArrayProxyNoTemporaries
|
||||
// Compile test on using vk::ArrayProxyNoTemporaries
|
||||
|
||||
#if defined( _MSC_VER )
|
||||
// no need to ignore any warnings with MSVC
|
||||
#elif defined( __GNUC__ )
|
||||
# if ( 9 <= __GNUC__ )
|
||||
# pragma GCC diagnostic ignored "-Winit-list-lifetime"
|
||||
# endif
|
||||
#else
|
||||
// unknow compiler... just ignore the warnings for yourselves ;)
|
||||
#endif
|
||||
|
||||
#include "vulkan/vulkan.hpp"
|
||||
|
||||
#include <iostream>
|
||||
|
||||
static char const * AppName = "ArrayProxyNoTemporaries";
|
||||
static char const * EngineName = "Vulkan.hpp";
|
||||
|
||||
void fct( vk::ArrayProxyNoTemporaries<int> /*ap*/ ) {}
|
||||
|
||||
void fctc( vk::ArrayProxyNoTemporaries<const int> /*ap*/ ) {}
|
||||
|
Loading…
Reference in New Issue
Block a user