From 84e165ef64ce117c5f1fa99b607f5bd143973e65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Fri, 8 Jul 2022 00:19:03 +0200 Subject: [PATCH] Win32: Work around warnings on MSVC 19.32.x --- tests/glfwinfo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/glfwinfo.c b/tests/glfwinfo.c index d57f48c3..eda2f821 100644 --- a/tests/glfwinfo.c +++ b/tests/glfwinfo.c @@ -962,7 +962,7 @@ int main(int argc, char** argv) continue; re_count++; - re = realloc(re, sizeof(char*) * re_count); + re = realloc((void*) re, sizeof(char*) * re_count); re[re_count - 1] = "VK_KHR_portability_enumeration"; portability_enumeration = true; } @@ -999,7 +999,7 @@ int main(int argc, char** argv) exit(EXIT_FAILURE); } - free(re); + free((void*) re); gladLoadVulkanUserPtr(NULL, (GLADuserptrloadfunc) glfwGetInstanceProcAddress, instance);