From 9d089eeac8e2c63d3ed32163cb5142ff72f638ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kirill=20M=C3=BCller?= Date: Tue, 26 Nov 2013 11:36:54 +0100 Subject: [PATCH] mute spurious warnings --- tools/virtual.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tools/virtual.c b/tools/virtual.c index 3ee9cd0..960ef95 100644 --- a/tools/virtual.c +++ b/tools/virtual.c @@ -349,13 +349,17 @@ static int context_init(struct context *ctx) static void context_enable_timer(struct context *ctx) { uint64_t count; + int ret; DBG(("%s timer active? %d\n", __func__, ctx->timer_active)); if (ctx->timer_active) return; - read(ctx->timer, &count, sizeof(count)); + /* ignore return value */ + ret = read(ctx->timer, &count, sizeof(count)); + (void)ret; + ctx->timer_active = 1; } @@ -752,6 +756,7 @@ static void init_image(struct clone *clone) ret = XInitImage(image); assert(ret); + (void)ret; } static int mode_height(const XRRModeInfo *mode, Rotation rotation) @@ -1166,6 +1171,8 @@ err: ret = XRRSetPanning(dst->dpy, res, rr_crtc, memset(&panning, 0, sizeof(panning))); DBG(("%s-%s: XRRSetPanning %s\n", DisplayString(dst->dpy), dst->name, ret ? "failed" : "success")); dst->rr_crtc = rr_crtc; + + (void)ret; } XUngrabServer(display->dpy); -- 1.8.4.4