From ae89b7784920bb79a84f8cda8cf57afb5d808434 Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Wed, 30 May 2018 16:46:50 +0200 Subject: [PATCH] gallizm/aux/util/u_format.c, u_debug_describe.c: Fix warnings u_debug_describe.c: In function 'debug_describe_reference': u_debug_describe.c:33:65: warning: unused parameter 'ptr' [-Wunused- parameter] debug_describe_reference(char* buf, const struct pipe_reference*ptr) u_format.c: In function 'util_format_is_float': u_format.c:57:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (i == -1) { v2: Replace VREND_UNUSED by UNUSED (Erik) Reviewed-by: Erik Faye-Lund Signed-off-by: Gert Wollny Signed-off-by: Jakob Bornecrantz --- src/gallium/auxiliary/util/u_debug_describe.c | 2 +- src/gallium/auxiliary/util/u_format.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/auxiliary/util/u_debug_describe.c b/src/gallium/auxiliary/util/u_debug_describe.c index df73ed8..499c360 100644 --- a/src/gallium/auxiliary/util/u_debug_describe.c +++ b/src/gallium/auxiliary/util/u_debug_describe.c @@ -30,7 +30,7 @@ #include "util/u_string.h" void -debug_describe_reference(char* buf, const struct pipe_reference*ptr) +debug_describe_reference(char* buf, UNUSED const struct pipe_reference*ptr) { strcpy(buf, "pipe_object"); } diff --git a/src/gallium/auxiliary/util/u_format.c b/src/gallium/auxiliary/util/u_format.c index 659189f..cda6aa7 100644 --- a/src/gallium/auxiliary/util/u_format.c +++ b/src/gallium/auxiliary/util/u_format.c @@ -46,7 +46,7 @@ boolean util_format_is_float(enum pipe_format format) { const struct util_format_description *desc = util_format_description(format); - unsigned i; + int i; assert(desc); if (!desc) {