diff --git a/tests/ArrayProxyNoTemporaries/ArrayProxyNoTemporaries.cpp b/tests/ArrayProxyNoTemporaries/ArrayProxyNoTemporaries.cpp index 1cd91ab..508af1f 100644 --- a/tests/ArrayProxyNoTemporaries/ArrayProxyNoTemporaries.cpp +++ b/tests/ArrayProxyNoTemporaries/ArrayProxyNoTemporaries.cpp @@ -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 -static char const * AppName = "ArrayProxyNoTemporaries"; -static char const * EngineName = "Vulkan.hpp"; - void fct( vk::ArrayProxyNoTemporaries /*ap*/ ) {} void fctc( vk::ArrayProxyNoTemporaries /*ap*/ ) {}