From a43cac24db2876b6dcdc4cf23a12d93855e66564 Mon Sep 17 00:00:00 2001 From: Victor Hugo Vianna Silva Date: Wed, 10 Feb 2021 18:16:10 +0000 Subject: [PATCH] Avoid some compiler errors for tests/util/pattern.c - Remove one unused variable. - Convert two int-s into 'unsigned int'. Motivated by a failed build of Chromium. Reviewed-by: Emil Velikov Signed-off-by: Victor Hugo Vianna Silva --- tests/util/pattern.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/util/pattern.c b/tests/util/pattern.c index bf1797d4..158c0b16 100644 --- a/tests/util/pattern.c +++ b/tests/util/pattern.c @@ -985,7 +985,6 @@ static void fill_tiles_rgb16fp(const struct util_format_info *info, void *mem, unsigned int stride) { const struct util_rgb_info *rgb = &info->rgb; - void *mem_base = mem; unsigned int x, y; /* TODO: Give this actual fp16 precision */ @@ -1113,7 +1112,7 @@ static void fill_gradient_rgb32(const struct util_rgb_info *rgb, unsigned int width, unsigned int height, unsigned int stride) { - int i, j; + unsigned int i, j; for (i = 0; i < height / 2; i++) { uint32_t *row = mem; @@ -1141,7 +1140,7 @@ static void fill_gradient_rgb16fp(const struct util_rgb_info *rgb, unsigned int width, unsigned int height, unsigned int stride) { - int i, j; + unsigned int i, j; for (i = 0; i < height / 2; i++) { uint64_t *row = mem;