aboutsummaryrefslogtreecommitdiff
path: root/src/cmd
diff options
context:
space:
mode:
authorDan Cross <cross@gajendra.net>2020-01-15 14:15:31 +0000
committerDan Cross <crossd@gmail.com>2020-01-15 09:20:41 -0500
commit0ac4bfee32fce9dc336751aa219ca4dbdf3e8ecd (patch)
tree7113e37ff47d18550323027d4b36b6377fdcde1a /src/cmd
parenta9b462061c05f8cd4e1f85b05522770293c8a468 (diff)
downloadplan9port-0ac4bfee32fce9dc336751aa219ca4dbdf3e8ecd.tar.gz
plan9port-0ac4bfee32fce9dc336751aa219ca4dbdf3e8ecd.tar.bz2
plan9port-0ac4bfee32fce9dc336751aa219ca4dbdf3e8ecd.zip
clock: Remove unused static variable in clock.c
`struct Tm tms` was set but never referenced; noticed in a compiler warning. Remove it. Signed-off-by: Dan Cross <cross@gajendra.net>
Diffstat (limited to 'src/cmd')
-rw-r--r--src/cmd/draw/clock.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/cmd/draw/clock.c b/src/cmd/draw/clock.c
index b804e1f4..b5d028b6 100644
--- a/src/cmd/draw/clock.c
+++ b/src/cmd/draw/clock.c
@@ -25,7 +25,6 @@ redraw(Image *screen)
static int rad;
int i;
int anghr, angmin;
- static Tm tms;
static Tm ntms;
ntm = time(0);
@@ -36,7 +35,6 @@ redraw(Image *screen)
anghr = 90-(ntms.hour*5 + ntms.min/12)*6;
angmin = 90-ntms.min*6;
tm = ntm;
- tms = ntms;
r = screen->r;
c = divpt(addpt(r.min, r.max), 2);
rad = Dx(r) < Dy(r) ? Dx(r) : Dy(r);