[PATCH libdrm 02/17] modetest: fix shadowing warnings
Emil Velikov
emil.l.velikov at gmail.com
Mon Aug 24 09:34:05 PDT 2015
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 <emil.l.velikov at gmail.com>
---
tests/modetest/modetest.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/tests/modetest/modetest.c b/tests/modetest/modetest.c
index 3a545c3..3b01918 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);
--
2.5.0
More information about the dri-devel
mailing list