Skip to content
Snippets Groups Projects
Commit a43cac24 authored by Victor Hugo Vianna Silva's avatar Victor Hugo Vianna Silva Committed by Simon Ser
Browse files

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: default avatarEmil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: default avatarVictor Hugo Vianna Silva <victor.vianna10@gmail.com>
parent 8cb12a25
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment