Skip to content

Commit

Permalink
Fixed Clang warning: format specifies type 'void **' but the argument…
Browse files Browse the repository at this point in the history
… has type 'VkShaderModule *' (aka 'unsigned long long *')
  • Loading branch information
corporateshark committed Feb 14, 2024
1 parent f5cb979 commit 500335f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lvk/vulkan/VulkanClasses.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,11 @@ VKAPI_ATTR VkBool32 VKAPI_CALL vulkanDebugCallback(VkDebugUtilsMessageSeverityFl
const char* substr2 = strstr(cbData->pMessage, "Shader Module (Shader Module: ");
char* shaderModuleDebugName = (char*)alloca(len + 1);
VkShaderModule shaderModule = VK_NULL_HANDLE;
#if VK_USE_64_BIT_PTR_DEFINES
if (substr2 && sscanf(substr2, "Shader Module (Shader Module: %[^)])(%p)", shaderModuleDebugName, &shaderModule) == 2) {
#else
if (substr2 && sscanf(substr2, "Shader Module (Shader Module: %[^)])(%llu)", shaderModuleDebugName, &shaderModule) == 2) {
#endif // VK_USE_64_BIT_PTR_DEFINES
ctx->invokeShaderModuleErrorCallback(line, col, shaderModuleDebugName, shaderModule);
}
}
Expand Down

0 comments on commit 500335f

Please sign in to comment.