diff options
author | Dan Cross <cross@gajendra.net> | 2020-01-15 14:15:31 +0000 |
---|---|---|
committer | Dan Cross <crossd@gmail.com> | 2020-01-15 09:20:41 -0500 |
commit | 0ac4bfee32fce9dc336751aa219ca4dbdf3e8ecd (patch) | |
tree | 7113e37ff47d18550323027d4b36b6377fdcde1a /src/cmd | |
parent | a9b462061c05f8cd4e1f85b05522770293c8a468 (diff) | |
download | plan9port-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.c | 2 |
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); |