diff options
author | Eduardo Chappa <chappa@washington.edu> | 2021-04-08 08:53:12 -0600 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2021-04-08 08:53:12 -0600 |
commit | 7ca059d80aae996ff3031aca15241a55e255a0f5 (patch) | |
tree | 5b7ca64156469d2ba4f89d1de00871d75ca4626f /pith/ical.c | |
parent | 4f13a7bcddc60430203fd545a3c584b3e9fc27aa (diff) | |
download | alpine-7ca059d80aae996ff3031aca15241a55e255a0f5.tar.xz |
* Clear out some warnings given by gcc 10.
Diffstat (limited to 'pith/ical.c')
-rw-r--r-- | pith/ical.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/pith/ical.c b/pith/ical.c index 2d61c00e..7022bb55 100644 --- a/pith/ical.c +++ b/pith/ical.c @@ -459,7 +459,6 @@ void ical_free_vtimezone(void **vtzpv) { VTIMEZONE_S **vtzp = (VTIMEZONE_S **) vtzpv; - TZ_comp i,j; if(vtzp == NULL || *vtzp == NULL) return; @@ -487,7 +486,6 @@ void ical_free_valarm(void **valarmpv) { VALARM_S **valarmp = (VALARM_S **) valarmpv; - int i, j; if(valarmp == NULL || *valarmp == NULL) return; @@ -1878,7 +1876,6 @@ ical_set_date(ICLINE_S *icl, VTIMEZONE_S *vtz) ICAL_PARAMETER_S *param; char *tz = NULL; struct tm ic_date; - time_t t; if(icl == NULL) return; @@ -2183,7 +2180,6 @@ ical_vevent_summary(VCALENDAR_S *vcal) VEVENT_S *vevent; GEN_ICLINE_S *gicl; ICLINE_S *icl; - char *k; if(vcal == NULL) return NULL; @@ -2542,13 +2538,13 @@ ical_vevent_summary(VCALENDAR_S *vcal) } if(*t == ','){ *u = '\0'; - rv->description[i++] = cpystr(ical_decode(s, vcal->encoding)); + rv->description[i++] = (unsigned char *) cpystr((char *) ical_decode(s, vcal->encoding)); s = u = t+1; } else *u++ = *t; } *u = '\0'; - rv->description[i++] = cpystr(ical_decode(s, vcal->encoding)); + rv->description[i++] = (unsigned char *) cpystr((char *) ical_decode(s, vcal->encoding)); rv->description[i] = NULL; fs_give((void **)&v); } /* end of if(description) */ |