ilo: silence a compiler warning
authorChia-I Wu <olvaffe@gmail.com>
Wed, 6 May 2015 08:32:28 +0000 (16:32 +0800)
committerChia-I Wu <olvaffe@gmail.com>
Wed, 6 May 2015 08:35:30 +0000 (16:35 +0800)
Silence

  ilo_query.c:120:7: warning: 'return' with no value, in function returning non-void

since commit 96f164f6.

src/gallium/drivers/ilo/ilo_query.c

index 57f920c03ee58b9ad15b2aaba3feec8c6e003d51..27d08128ab0f2bad4652ef172486315f344c7b2a 100644 (file)
@@ -117,7 +117,7 @@ ilo_begin_query(struct pipe_context *pipe, struct pipe_query *query)
    struct ilo_query *q = ilo_query(query);
 
    if (q->active)
-      return;
+      return false;
 
    util_query_clear_result(&q->result, q->type);
    q->used = 0;