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.
This commit is contained in:
Doug Torrance 2014-08-27 07:24:29 -05:00 committed by Carlos R. Mafra
parent 9005023ad2
commit d6ef017638

View file

@ -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);