[Pkg-wmaker-commits] [wmtime] 08/101: wmtime: Remove unused variables.
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Mon Aug 24 23:59:23 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to branch master
in repository wmtime.
commit 60e1af7b459cc0444d80e5f8a11ddd27d02da1b3
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date: Wed Aug 27 07:24:29 2014 -0500
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.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/wmtime/wmtime.c b/wmtime/wmtime.c
index d5cc8b2..7425d83 100644
--- a/wmtime/wmtime.c
+++ b/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);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmtime.git
More information about the Pkg-wmaker-commits
mailing list