[virglrenderer-devel] [PATCH v2 14/15] gallium/aux/u_debug.c: Annotate some unused parameters
Gert Wollny
gert.wollny at collabora.com
Tue Jun 5 20:20:02 UTC 2018
Silences:
u_debug.c: In function 'debug_funclog_enter':
util/u_debug.c:437:50: warning: unused parameter 'line' [-Wunused-
parameter]
int debug_funclog_enter(const char* f, const int line, const char* file)
^~~~
util/u_debug.c:437:68: warning: unused parameter 'file' [-Wunused-
parameter]
int debug_funclog_enter(const char* f, const int line, const char* file)
^~~~
util/u_debug.c: In function 'debug_funclog_exit':
util/u_debug.c:451:50: warning: unused parameter 'line' [-Wunused-
parameter]
void debug_funclog_exit(const char* f, const int line, const char* file)
^~~~
u_debug.c:451:68: warning: unused parameter 'file' [-Wunused-parameter]
void debug_funclog_exit(const char* f, const int line, const char* file)
^~~~
u_debug.c: In function 'debug_funclog_enter_exit':
u_debug.c:458:56: warning: unused parameter 'line' [-Wunused-parameter]
void debug_funclog_enter_exit(const char* f, const int line, const
char* file)
^~~~
u_debug.c:458:74: warning: unused parameter 'file' [-Wunused-parameter]
void debug_funclog_enter_exit(const char* f, const int line, const
char* file)
v2: use mesa style UNUSED annotation for unused parameters
Signed-off-by: Gert Wollny <gert.wollny at collabora.com>
---
src/gallium/auxiliary/util/u_debug.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/gallium/auxiliary/util/u_debug.c b/src/gallium/auxiliary/util/u_debug.c
index b57017b..248a8bf 100644
--- a/src/gallium/auxiliary/util/u_debug.c
+++ b/src/gallium/auxiliary/util/u_debug.c
@@ -434,7 +434,7 @@ const char *u_prim_name( unsigned prim )
int fl_indent = 0;
const char* fl_function[1024];
-int debug_funclog_enter(const char* f, const int line, const char* file)
+int debug_funclog_enter(const char* f, UNUSED const int line, UNUSED const char* file)
{
int i;
@@ -448,14 +448,14 @@ int debug_funclog_enter(const char* f, const int line, const char* file)
return 0;
}
-void debug_funclog_exit(const char* f, const int line, const char* file)
+void debug_funclog_exit(const char* f, UNUSED const int line, UNUSED const char* file)
{
--fl_indent;
assert(fl_indent >= 0);
assert(fl_function[fl_indent] == f);
}
-void debug_funclog_enter_exit(const char* f, const int line, const char* file)
+void debug_funclog_enter_exit(const char* f, UNUSED const int line, UNUSED const char* file)
{
int i;
for (i = 0; i < fl_indent; i++)
--
2.16.4
More information about the virglrenderer-devel
mailing list