From 03b2e9d1adade9c08d608fe750f616caf747b2ac Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Mon, 15 Sep 2025 16:17:26 +0200 Subject: [PATCH] Xext: xv: suppress false alarm on unused typedef MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit > In file included from ../Xext/xvdisp.c:33: > ../Xext/xvdisp.c: In function ‘ProcXvQueryImageAttributes’: > ../Xext/xvdisp.c:768:19: warning: typedef ‘int_size_wrong_’ locally defined but not used [-Wunused-local-typedefs] > 768 | __size_assert(int, sizeof(INT32)); > | ^~~ Signed-off-by: Enrico Weigelt, metux IT consult --- Xext/xvdisp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Xext/xvdisp.c b/Xext/xvdisp.c index 243a0fddbf..87dce70993 100644 --- a/Xext/xvdisp.c +++ b/Xext/xvdisp.c @@ -730,6 +730,8 @@ ProcXvShmPutImage(ClientPtr client) #include "xvmcext.h" #endif +__size_assert(int, sizeof(INT32)); + static int ProcXvQueryImageAttributes(ClientPtr client) { @@ -765,7 +767,6 @@ ProcXvQueryImageAttributes(ClientPtr client) /* allocating for `offsets` as well as `pitches` in one block */ /* both having CARD32 * num_planes (actually int32_t put into CARD32) */ - __size_assert(int, sizeof(INT32)); int *offsets = x_rpcbuf_reserve(&rpcbuf, 2 * num_planes * sizeof(int)); if (!offsets) return BadAlloc;