diff options
Diffstat (limited to 'examples/errors.c')
-rw-r--r-- | examples/errors.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/errors.c b/examples/errors.c index 2ff316dd..0072f144 100644 --- a/examples/errors.c +++ b/examples/errors.c @@ -8,11 +8,9 @@ void program_errors() /*Most routines will set icalerrno on errors. This is an enumeration defined in icalerror.h */ - icalcomponent *c; - icalerror_clear_errno(); - c = icalcomponent_new(ICAL_VEVENT_COMPONENT); + (void)icalcomponent_new(ICAL_VEVENT_COMPONENT); if (icalerrno != ICAL_NO_ERROR){ |