Fixed default_debug_callback warning over unused formal paramter

This commit is contained in:
Charles Giessen 2020-03-14 19:57:40 -06:00
parent 505f9d91f9
commit b330527d65

View File

@ -108,12 +108,11 @@ void destroy_debug_utils_messenger (
VkBool32 default_debug_callback (VkDebugUtilsMessageSeverityFlagBitsEXT messageSeverity, VkBool32 default_debug_callback (VkDebugUtilsMessageSeverityFlagBitsEXT messageSeverity,
VkDebugUtilsMessageTypeFlagsEXT messageType, VkDebugUtilsMessageTypeFlagsEXT messageType,
const VkDebugUtilsMessengerCallbackDataEXT* pCallbackData, const VkDebugUtilsMessengerCallbackDataEXT* pCallbackData,
void* pUserData) { void*) {
auto ms = to_string_message_severity (messageSeverity); auto ms = to_string_message_severity (messageSeverity);
auto mt = to_string_message_type (messageType); auto mt = to_string_message_type (messageType);
printf ("[%s: %s]\n%s\n", ms, mt, pCallbackData->pMessage); printf ("[%s: %s]\n%s\n", ms, mt, pCallbackData->pMessage);
assert (pUserData == nullptr && "Default debug callback should have no user data");
return VK_FALSE; return VK_FALSE;
} }