From 0ac4bfee32fce9dc336751aa219ca4dbdf3e8ecd Mon Sep 17 00:00:00 2001 From: Dan Cross Date: Wed, 15 Jan 2020 14:15:31 +0000 Subject: 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 --- src/cmd/draw/clock.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/cmd') 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); -- cgit v1.2.3