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;