From: Victor Hugo Vianna Silva Date: Wed, 10 Feb 2021 18:16:10 +0000 (+0000) Subject: Avoid some compiler errors for tests/util/pattern.c X-Git-Tag: libdrm-2.4.105~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a43cac24db2876b6dcdc4cf23a12d93855e66564;p=platform%2Fupstream%2Flibdrm.git 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 --- diff --git a/tests/util/pattern.c b/tests/util/pattern.c index bf1797d..158c0b1 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;