diff options
author | Allen Winter <allen.winter@kdab.com> | 2014-09-07 19:59:08 -0400 |
---|---|---|
committer | Allen Winter <allen.winter@kdab.com> | 2014-09-07 19:59:08 -0400 |
commit | af1ad47fad1fc91989847bab22d12c3996a040ef (patch) | |
tree | 09f4ed9452778c54a8791c4b229f8e24f3af7546 /examples/errors.c | |
parent | a046f246262fcb0c7da33ec1b6958abc0fc56863 (diff) | |
download | libical-git-af1ad47fad1fc91989847bab22d12c3996a040ef.tar.gz |
Eliminate many compiler warnings from gcc
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){ |