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);
--
1.9.1
--
To unsubscribe, send mail to [email protected].