[virglrenderer-devel] [PATCH 14/21] vrend_object.c: Fix warnings

Gert Wollny gert.wollny at collabora.com
Fri Jun 1 08:48:01 UTC 2018


vrend_object.c: In function »vrend_object_insert_nofree«:
vrend_object.c:128:49: Warning: unused parameter »length« [-Wunused-
parameter]
                            void *data, uint32_t length, uint32_t
handle, enum virgl_object_type type, bool free_data)
                                                 ^~~~~~
vrend_object.c: In function »vrend_object_remove«:
vrend_object.c:152:61: Warning: unused parameter »type« [-Wunused-
parameter]
                     uint32_t handle, enum virgl_object_type type)
                                                             ^~~~
vrend_object.c: In function »vrend_resource_lookup«:
vrend_object.c:195:55: Warning: unused parameter »ctx_id« [-Wunused-
parameter]
 void *vrend_resource_lookup(uint32_t handle, uint32_t ctx_id)

Signed-off-by: Gert Wollny <gert.wollny at collabora.com>
---
 src/vrend_object.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/vrend_object.c b/src/vrend_object.c
index 3fcf21a..2eea521 100644
--- a/src/vrend_object.c
+++ b/src/vrend_object.c
@@ -127,6 +127,7 @@ uint32_t
 vrend_object_insert_nofree(struct util_hash_table *handle_hash,
                            void *data, uint32_t length, uint32_t handle, enum virgl_object_type type, bool free_data)
 {
+   VREND_UNUSED(length);
    struct vrend_object *obj = CALLOC_STRUCT(vrend_object);
 
    if (!obj)
@@ -151,6 +152,7 @@ void
 vrend_object_remove(struct util_hash_table *handle_hash,
                     uint32_t handle, enum virgl_object_type type)
 {
+   VREND_UNUSED(type);
    util_hash_table_remove(handle_hash, intptr_to_pointer(handle));
 
 }
@@ -194,6 +196,7 @@ void vrend_resource_remove(uint32_t handle)
 
 void *vrend_resource_lookup(uint32_t handle, uint32_t ctx_id)
 {
+   VREND_UNUSED(ctx_id);
    struct vrend_object *obj;
    obj = util_hash_table_get(res_hash, intptr_to_pointer(handle));
    if (!obj)
-- 
2.17.0



More information about the virglrenderer-devel mailing list