From 32ec8b979bc8cf7d8ce351ca752b806d42bc1c0f Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 16 Aug 2012 20:53:08 +0100 Subject: [PATCH] test/dri2: Discard error returns from _XReply This is only test code, so keep the static analyser quiet Reported-by: Zdenek Kabelac Signed-off-by: Chris Wilson --- test/dri2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/dri2.c b/test/dri2.c index 86a0a747..0e2003c6 100644 --- a/test/dri2.c +++ b/test/dri2.c @@ -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);