From 99722bfec6f1bbfc5148701f85ac145140d46afb Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Sat, 15 Aug 2015 15:20:37 +0100 Subject: [PATCH] modetest: fix shadowing warnings No real issue here, but let's fix these so that real issues don't get lost in the spam. Signed-off-by: Emil Velikov --- tests/modetest/modetest.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/tests/modetest/modetest.c b/tests/modetest/modetest.c index 3a545c38..3b01918d 100644 --- a/tests/modetest/modetest.c +++ b/tests/modetest/modetest.c @@ -589,7 +589,6 @@ static struct resources *get_resources(struct device *dev) #define get_resource(_res, __res, type, Type) \ do { \ - int i; \ for (i = 0; i < (int)(_res)->__res->count_##type##s; ++i) { \ (_res)->type##s[i].type = \ drmModeGet##Type(dev->fd, (_res)->__res->type##s[i]); \ @@ -616,7 +615,6 @@ static struct resources *get_resources(struct device *dev) #define get_properties(_res, __res, type, Type) \ do { \ - int i; \ for (i = 0; i < (int)(_res)->__res->count_##type##s; ++i) { \ struct type *obj = &res->type##s[i]; \ unsigned int j; \ @@ -1301,7 +1299,6 @@ static void test_page_flip(struct device *dev, struct pipe_arg *pipes, unsigned #else struct timeval timeout = { .tv_sec = 3, .tv_usec = 0 }; fd_set fds; - int ret; FD_ZERO(&fds); FD_SET(0, &fds);