From 5b12c236cf68a182fb8075c7ec0797c4c64fd60c Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Sun, 3 Apr 2011 21:54:58 +0200 Subject: Remove dead assignments spotted by clang-analyzer. Signed-off-by: Lukas Fleischer --- src/recur.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'src/recur.c') diff --git a/src/recur.c b/src/recur.c index e9e5ac3..a4932a1 100644 --- a/src/recur.c +++ b/src/recur.c @@ -400,12 +400,8 @@ recur_apoint_scan (FILE *f, struct tm start, struct tm end, char type, int freq, struct tm until, char *note, struct days **exc, char state) { - struct tm *lt; char buf[BUFSIZ], *nl; - time_t tstart, tend, t, tuntil; - - t = time (NULL); - lt = localtime (&t); + time_t tstart, tend, tuntil; /* Read the appointment description */ (void)fgets (buf, sizeof buf, f); @@ -908,7 +904,6 @@ recur_repeat_item (struct conf *conf) int item_nb; struct day_item *p; struct recur_apoint *ra; - struct recur_event *re; long until, date; item_nb = apoint_hilt (); @@ -916,7 +911,7 @@ recur_repeat_item (struct conf *conf) if (p->type != APPT && p->type != EVNT) { status_mesg (wrong_type_1, wrong_type_2); - ch = wgetch (win[STA].p); + (void)wgetch (win[STA].p); return; } @@ -934,7 +929,6 @@ recur_repeat_item (struct conf *conf) else { type = recur_char2def (ch); - ch = 0; } while (freq == 0) @@ -1005,8 +999,8 @@ recur_repeat_item (struct conf *conf) date = calendar_get_slctd_day_sec (); if (p->type == EVNT) { - re = recur_event_new (p->mesg, p->note, p->start, p->evnt_id, - type, freq, until, NULL); + (void)recur_event_new (p->mesg, p->note, p->start, p->evnt_id, + type, freq, until, NULL); } else if (p->type == APPT) { -- cgit v1.2.3-54-g00ecf