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 <emil.l.velikov@gmail.com>
Signed-off-by: Victor Hugo Vianna Silva <victor.vianna10@gmail.com>
main
Victor Hugo Vianna Silva 2021-02-10 18:16:10 +00:00 committed by Simon Ser
parent 8cb12a2528
commit a43cac24db
1 changed files with 2 additions and 3 deletions

View File

@ -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;