From d39acc6d1ef9e87a8c1e9f6563f5e296f71f34ae Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Fri, 27 Sep 2024 11:19:54 -0700
Subject: [PATCH] Fixed warning C4702: unreachable code
---
src/gpu/vulkan/SDL_gpu_vulkan.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/src/gpu/vulkan/SDL_gpu_vulkan.c b/src/gpu/vulkan/SDL_gpu_vulkan.c
index 5a8c8d64a14cd..fee2b7ffeadae 100644
--- a/src/gpu/vulkan/SDL_gpu_vulkan.c
+++ b/src/gpu/vulkan/SDL_gpu_vulkan.c
@@ -6297,7 +6297,6 @@ static SDL_GPUGraphicsPipeline *VULKAN_CreateGraphicsPipeline(
SDL_stack_free(divisorDescriptions);
SDL_free(graphicsPipeline);
SET_STRING_ERROR_AND_RETURN("Failed to initialize pipeline resource layout!", NULL);
- return NULL;
}
// Pipeline
@@ -11241,7 +11240,6 @@ static SDL_GPUDevice *VULKAN_CreateDevice(bool debugMode, bool preferLowPower, S
SDL_free(renderer);
SDL_Vulkan_UnloadLibrary();
SET_STRING_ERROR_AND_RETURN("Failed to create logical device!", NULL)
- return NULL;
}
// FIXME: just move this into this function