Xext: xv: suppress false alarm on unused typedef

> 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 <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-09-15 16:17:26 +02:00
parent d7e7d2c142
commit 03b2e9d1ad

View File

@@ -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;