[virglrenderer-devel] [PATCH 15/16] gallium/auxiliary/util/u_debug.c: Fix warnings
Gert Wollny
gert.wollny at collabora.com
Thu May 31 09:15:47 UTC 2018
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)
^~~~
Signed-off-by: Gert Wollny <gert.wollny at collabora.com>
---
src/gallium/auxiliary/util/u_debug.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/gallium/auxiliary/util/u_debug.c b/src/gallium/auxiliary/util/u_debug.c
index b57017b..d806302 100644
--- a/src/gallium/auxiliary/util/u_debug.c
+++ b/src/gallium/auxiliary/util/u_debug.c
@@ -437,6 +437,8 @@ const char* fl_function[1024];
int debug_funclog_enter(const char* f, const int line, const char* file)
{
int i;
+ VREND_UNUSED(line);
+ VREND_UNUSED(file);
for (i = 0; i < fl_indent; i++)
debug_printf(" ");
@@ -450,6 +452,8 @@ int debug_funclog_enter(const char* f, const int line, const char* file)
void debug_funclog_exit(const char* f, const int line, const char* file)
{
+ VREND_UNUSED(line);
+ VREND_UNUSED(file);
--fl_indent;
assert(fl_indent >= 0);
assert(fl_function[fl_indent] == f);
@@ -458,6 +462,8 @@ void debug_funclog_exit(const char* f, const int line, const char* file)
void debug_funclog_enter_exit(const char* f, const int line, const char* file)
{
int i;
+ VREND_UNUSED(line);
+ VREND_UNUSED(file);
for (i = 0; i < fl_indent; i++)
debug_printf(" ");
debug_printf("%s\n", f);
--
2.16.1
More information about the virglrenderer-devel
mailing list