fix some warnings (errors) on release build.

This commit is contained in:
asuessenbach
2020-10-20 09:55:19 +02:00
parent 32c994335a
commit 2e95313c1d
6 changed files with 25 additions and 7 deletions

View File

@@ -15,6 +15,14 @@
// VulkanHpp Samples : Hash
// Compile test on using std::hash on handles
#if defined( _MSC_VER )
# pragma warning( disable : 4189 ) // local variable is initialized but not referenced
#elif defined( __GNUC__ )
# pragma GCC diagnostic ignored "-Wunused-variable"
#else
// unknow compiler... just ignore the warnings for yourselves ;)
#endif
#include "vulkan/vulkan.hpp"
#include <iostream>