From d6ef01763851355f66c37cc5e9bdd7061e20a7d5 Mon Sep 17 00:00:00 2001 From: Doug Torrance Date: Wed, 27 Aug 2014 07:24:29 -0500 Subject: [PATCH] wmtime: Remove unused variables. This patch removes the unused variables nexttime and old_time_struct to avoid a warning when -Wunused-but-set-variable is passed. --- wmtime/wmtime/wmtime.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/wmtime/wmtime/wmtime.c b/wmtime/wmtime/wmtime.c index d5cc8b2..7425d83 100644 --- a/wmtime/wmtime/wmtime.c +++ b/wmtime/wmtime/wmtime.c @@ -231,11 +231,9 @@ void wmtime_routine(int argc, char **argv) { int but_stat = -1; struct tm *time_struct; - struct tm old_time_struct; long starttime; long curtime; - long nexttime; char *conffile = NULL; @@ -273,7 +271,6 @@ void wmtime_routine(int argc, char **argv) { AddMouseRegion(1, 5, 5, 58, 46); starttime = time(0); - nexttime = starttime + 1; curtime = time(0); time_struct = localtime(&curtime); @@ -283,7 +280,6 @@ void wmtime_routine(int argc, char **argv) { waitpid(0, NULL, WNOHANG); - old_time_struct = *time_struct; time_struct = localtime(&curtime);