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>
This commit is contained in:
parent
a9b462061c
commit
0ac4bfee32
1 changed files with 0 additions and 2 deletions
|
|
@ -25,7 +25,6 @@ redraw(Image *screen)
|
||||||
static int rad;
|
static int rad;
|
||||||
int i;
|
int i;
|
||||||
int anghr, angmin;
|
int anghr, angmin;
|
||||||
static Tm tms;
|
|
||||||
static Tm ntms;
|
static Tm ntms;
|
||||||
|
|
||||||
ntm = time(0);
|
ntm = time(0);
|
||||||
|
|
@ -36,7 +35,6 @@ redraw(Image *screen)
|
||||||
anghr = 90-(ntms.hour*5 + ntms.min/12)*6;
|
anghr = 90-(ntms.hour*5 + ntms.min/12)*6;
|
||||||
angmin = 90-ntms.min*6;
|
angmin = 90-ntms.min*6;
|
||||||
tm = ntm;
|
tm = ntm;
|
||||||
tms = ntms;
|
|
||||||
r = screen->r;
|
r = screen->r;
|
||||||
c = divpt(addpt(r.min, r.max), 2);
|
c = divpt(addpt(r.min, r.max), 2);
|
||||||
rad = Dx(r) < Dy(r) ? Dx(r) : Dy(r);
|
rad = Dx(r) < Dy(r) ? Dx(r) : Dy(r);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue