From a11955b9f9ffe52c21dd8551d1de4f55f218db54 Mon Sep 17 00:00:00 2001 From: Jose Fonseca Date: Wed, 25 Nov 2015 13:34:18 +0000 Subject: [PATCH] svga: Don't return value from void function. Addresses MSVC warning C4098: 'svga_destroy_query' : 'void' function returning a value. Reviewed-by: Roland Scheidegger --- src/gallium/drivers/svga/svga_pipe_query.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/svga/svga_pipe_query.c b/src/gallium/drivers/svga/svga_pipe_query.c index 5416a009dcb..3859050bf18 100644 --- a/src/gallium/drivers/svga/svga_pipe_query.c +++ b/src/gallium/drivers/svga/svga_pipe_query.c @@ -754,7 +754,8 @@ svga_destroy_query(struct pipe_context *pipe, struct pipe_query *q) struct svga_query *sq; if (q == NULL) { - return destroy_gb_query_obj(svga); + destroy_gb_query_obj(svga); + return; } sq = svga_query(q); -- 2.30.2