diff mbox

[libdrm,1/4] tests: remove unused variables

Message ID 1424703395-7596-2-git-send-email-emil.l.velikov@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Emil Velikov Feb. 23, 2015, 2:56 p.m. UTC
As kindly pointed out by GCC.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
---
 tests/name_from_fd.c | 3 +--
 tests/updatedraw.c   | 2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)
diff mbox

Patch

diff --git a/tests/name_from_fd.c b/tests/name_from_fd.c
index e3db413..24af6e6 100644
--- a/tests/name_from_fd.c
+++ b/tests/name_from_fd.c
@@ -40,8 +40,7 @@ 
  */
 int main(int argc, char **argv)
 {
-	int fd, ret;
-	drm_set_version_t sv, version;
+	int fd;
 	const char *name = "/dev/dri/card0";
 	char *v;
 
diff --git a/tests/updatedraw.c b/tests/updatedraw.c
index 8e0b94b..d01fa96 100644
--- a/tests/updatedraw.c
+++ b/tests/updatedraw.c
@@ -122,7 +122,7 @@  static int rm_drawable(int fd, int drawable, int fail)
  */
 int main(int argc, char **argv)
 {
-	int fd, ret, d1, d2;
+	int fd, d1, d2;
 
 	if (getuid() != 0) {
 		fprintf(stderr, "updatedraw test requires root, skipping\n");