[Mesa-dev] [PATCH v2 25/29] gallium/aux/util/u_debug.c: Silence warnings -Wunused-param
Gert Wollny
gw.fossdev at gmail.com
Thu Nov 16 15:09:58 UTC 2017
Silence warnings by decoration the parameters with UNUSED.
Signed-off-by: Gert Wollny <gw.fossdev at gmail.com>
---
src/gallium/auxiliary/util/u_debug.c | 35 +++++++++++++++++++----------------
1 file changed, 19 insertions(+), 16 deletions(-)
diff --git a/src/gallium/auxiliary/util/u_debug.c b/src/gallium/auxiliary/util/u_debug.c
index 866cfbdd35..cb34e7b982 100644
--- a/src/gallium/auxiliary/util/u_debug.c
+++ b/src/gallium/auxiliary/util/u_debug.c
@@ -444,7 +444,8 @@ int fl_indent = 0;
const char* fl_function[1024];
int
-debug_funclog_enter(const char* f, const int line, const char* file)
+debug_funclog_enter(const char* f, UNUSED const int line,
+ UNUSED const char* file)
{
int i;
@@ -459,7 +460,8 @@ 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)
+debug_funclog_exit(const char* f, UNUSED const int line,
+ UNUSED const char* file)
{
--fl_indent;
assert(fl_indent >= 0);
@@ -467,7 +469,8 @@ 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)
+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.13.6
More information about the mesa-dev
mailing list