[PATCH libdrm 01/17] vbltest: fix variable shadowing warning

Emil Velikov emil.l.velikov at gmail.com
Mon Aug 24 09:34:04 PDT 2015


Just remove the second (shadowing) declaration of ret.

Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
 tests/vbltest/vbltest.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/tests/vbltest/vbltest.c b/tests/vbltest/vbltest.c
index 4200adb..e27f45c 100644
--- a/tests/vbltest/vbltest.c
+++ b/tests/vbltest/vbltest.c
@@ -177,7 +177,6 @@ int main(int argc, char **argv)
 	while (1) {
 		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