gallium/auxiliary/util/u_debug.c: Fix warnings

u_debug.c: In function 'debug_funclog_enter':
u_debug.c:437:50: warning: unused parameter 'line' [-Wunused-parameter]
int debug_funclog_enter(const char* f, const int line, const char* file)
                                                 ^~~~

u_debug.c:437:68: warning: unused parameter 'file' [-Wunused-parameter]
int debug_funclog_enter(const char* f, const int line, const char* file)
                                                                   ^~~~

u_debug.c: In function 'debug_funclog_exit':
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: Replace VREND_UNUSED by UNUSED (Erik)

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Signed-off-by: Jakob Bornecrantz <jakob@collabora.com>
macos/master
Gert Wollny 7 years ago committed by Jakob Bornecrantz
parent 1df55d36b2
commit 9ddf5081a6
  1. 12
      src/gallium/auxiliary/util/u_debug.c

@ -434,7 +434,9 @@ const char *u_prim_name( unsigned prim )
int fl_indent = 0; int fl_indent = 0;
const char* fl_function[1024]; 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; int i;
@ -448,14 +450,18 @@ int debug_funclog_enter(const char* f, const int line, const char* file)
return 0; 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; --fl_indent;
assert(fl_indent >= 0); assert(fl_indent >= 0);
assert(fl_function[fl_indent] == f); 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; int i;
for (i = 0; i < fl_indent; i++) for (i = 0; i < fl_indent; i++)

Loading…
Cancel
Save