mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 03:44:06 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user