summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-08-16 20:53:08 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-08-16 20:53:08 +0100
commit32ec8b979bc8cf7d8ce351ca752b806d42bc1c0f (patch)
tree4e8dab74fc57b41ea904c52d5d96fbb37b04d74d /test
parent5675c36e0dca92b8d24235d82cd0e87f82fdc7b0 (diff)
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>
Diffstat (limited to 'test')
-rw-r--r--test/dri2.c4
1 files 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);