[Mesa-dev] [PATCH 2/2] svga: Don't return value from void function.
Jose Fonseca
jfonseca at vmware.com
Thu Nov 26 06:31:33 PST 2015
Addresses MSVC warning C4098: 'svga_destroy_query' : 'void' function
returning a value.
---
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 5416a00..3859050 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.5.0
More information about the mesa-dev
mailing list