From c493b40cc31af1d246e3701f2e1c0ae15db8a78c Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Fri, 22 Mar 2024 00:23:07 +0100 Subject: [PATCH] testffmpeg_vulkan: fix -Wincompatible-pointer-types warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ``` [1/1] Building C object test/CMakeFiles/testffmpeg.dir/testffmpeg_vulkan.c.o /src/SDL/test/testffmpeg_vulkan.c: In function ‘BeginVulkanFrameRendering’: /src/SDL/test/testffmpeg_vulkan.c:787:20: warning: passing argument 1 of ‘vk->lock_frame’ from incompatible pointer type [-Wincompatible-pointer-types] 787 | vk->lock_frame(frames, pVkFrame); | ^~~~~~ | | | AVHWFramesContext * /src/SDL/test/testffmpeg_vulkan.c:787:20: note: expected ‘struct AVHWFramesContext *’ but argument is of type ‘AVHWFramesContext *’ /src/SDL/test/testffmpeg_vulkan.c: In function ‘FinishVulkanFrameRendering’: /src/SDL/test/testffmpeg_vulkan.c:885:22: warning: passing argument 1 of ‘vk->unlock_frame’ from incompatible pointer type [-Wincompatible-pointer-types] 885 | vk->unlock_frame(frames, pVkFrame); | ^~~~~~ | | | AVHWFramesContext * /src/SDL/test/testffmpeg_vulkan.c:885:22: note: expected ‘struct AVHWFramesContext *’ but argument is of type ‘AVHWFramesContext *’ ``` --- test/testffmpeg_vulkan.c | 3 --- test/testffmpeg_vulkan.h | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/test/testffmpeg_vulkan.c b/test/testffmpeg_vulkan.c index 6a80505e7..23e71f30c 100644 --- a/test/testffmpeg_vulkan.c +++ b/test/testffmpeg_vulkan.c @@ -16,9 +16,6 @@ #ifdef FFMPEG_VULKAN_SUPPORT -#include -#include - #define VULKAN_FUNCTIONS() \ VULKAN_GLOBAL_FUNCTION(vkCreateInstance) \ VULKAN_GLOBAL_FUNCTION(vkEnumerateInstanceExtensionProperties) \ diff --git a/test/testffmpeg_vulkan.h b/test/testffmpeg_vulkan.h index 78cabced4..593eae5ee 100644 --- a/test/testffmpeg_vulkan.h +++ b/test/testffmpeg_vulkan.h @@ -10,6 +10,7 @@ freely. */ +#include #include