From c0bc10427c79ecd7e3aad5ce13a67ef7d553cf05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Mon, 17 Jul 2017 21:21:10 +0200 Subject: [PATCH] Fix warnings in Vulkan test --- tests/vulkan.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/vulkan.c b/tests/vulkan.c index f734dca0..d0d4b3e3 100644 --- a/tests/vulkan.c +++ b/tests/vulkan.c @@ -1721,7 +1721,7 @@ static void demo_init_vk(struct demo *demo) { err = vkEnumerateInstanceLayerProperties(&instance_layer_count, NULL); assert(!err); - instance_validation_layers = instance_validation_layers_alt1; + instance_validation_layers = (const char**) instance_validation_layers_alt1; if (instance_layer_count > 0) { VkLayerProperties *instance_layers = malloc(sizeof (VkLayerProperties) * instance_layer_count); @@ -1740,7 +1740,8 @@ static void demo_init_vk(struct demo *demo) { validation_layer_count = 1; } else { // use alternative set of validation layers - instance_validation_layers = instance_validation_layers_alt2; + instance_validation_layers = + (const char**) instance_validation_layers_alt2; demo->enabled_layer_count = ARRAY_SIZE(instance_validation_layers_alt2); validation_found = demo_check_layers( ARRAY_SIZE(instance_validation_layers_alt2),