test/dri2: Discard error returns from _XReply

This is only test code, so keep the static analyser quiet

Reported-by: Zdenek Kabelac <zkabelac@redhat.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-08-16 20:53:08 +01:00
parent 5675c36e0d
commit 32ec8b979b
1 changed files with 2 additions and 2 deletions

View File

@ -475,7 +475,7 @@ DRI2CopyRegion(Display * dpy, XID drawable, XserverRegion region,
req->dest = dest;
req->src = src;
_XReply(dpy, (xReply *) & rep, 0, xFalse);
(void) _XReply(dpy, (xReply *) & rep, 0, xFalse);
UnlockDisplay(dpy);
SyncHandle();
@ -517,7 +517,7 @@ uint64_t DRI2SwapBuffers(Display *dpy, XID drawable,
req->drawable = drawable;
load_swap_req(req, target_msc, divisor, remainder);
_XReply(dpy, (xReply *)&rep, 0, xFalse);
(void) _XReply(dpy, (xReply *)&rep, 0, xFalse);
count = vals_to_card64(rep.swap_lo, rep.swap_hi);