[virglrenderer-devel] [PATCH 12/16] gallizm/aux/util/u_format.c: Fix warnings
Gert Wollny
gert.wollny at collabora.com
Thu May 31 09:15:44 UTC 2018
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) {
Signed-off-by: Gert Wollny <gert.wollny at collabora.com>
---
src/gallium/auxiliary/util/u_debug_describe.c | 1 +
src/gallium/auxiliary/util/u_format.c | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/gallium/auxiliary/util/u_debug_describe.c b/src/gallium/auxiliary/util/u_debug_describe.c
index df73ed8..e368083 100644
--- a/src/gallium/auxiliary/util/u_debug_describe.c
+++ b/src/gallium/auxiliary/util/u_debug_describe.c
@@ -32,6 +32,7 @@
void
debug_describe_reference(char* buf, const struct pipe_reference*ptr)
{
+ VREND_UNUSED(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) {
--
2.16.1
More information about the virglrenderer-devel
mailing list