From 071fd005ad6572767d7441c97549b1c904719944 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Mon, 12 Sep 2022 20:29:25 -0700 Subject: [PATCH] gstallocatorphymem.c: Typecast result of gst_phymem_get_phy to guintptr This fixes a warning/error found with clang-15 Upstream-Status: Pending Signed-off-by: Khem Raj --- gst-libs/gst/allocators/gstallocatorphymem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/gst-libs/gst/allocators/gstallocatorphymem.c +++ b/gst-libs/gst/allocators/gstallocatorphymem.c @@ -225,7 +225,7 @@ static guintptr gst_allocator_phymem_get_phys_addr (GstPhysMemoryAllocator * allocator, GstMemory * mem) { - return gst_phymem_get_phy (mem); + return (guintptr)gst_phymem_get_phy (mem); } static void --- a/gst-libs/gst/gl/gstglphymemory.c +++ b/gst-libs/gst/gl/gstglphymemory.c @@ -337,7 +337,7 @@ gst_gl_physical_memory_setup_buffer (Gst GST_VIDEO_INFO_HEIGHT (info), viv_fmt, memblk->vaddr, - memblk->paddr, + (guint)memblk->paddr, FALSE }; --- a/gst/subparse/gstssaparse.c +++ b/gst/subparse/gstssaparse.c @@ -24,7 +24,9 @@ #include "config.h" #endif +#include /* isspace() */ #include /* atoi() */ +#include /* sscanf() */ #include #include "gstssaparse.h"