aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2018-04-09 14:09:40 -0400
committerDavid Goulet <dgoulet@torproject.org>2018-04-09 14:12:45 -0400
commit395fa0258d56b24e39cd714834ffe0dcb365ea25 (patch)
treef3aacdf83c44dd9f1ee77ebc17487e31a6791893 /src/common
parente58555135a11e1c78b130cb4807d5dc1d1dfe97b (diff)
downloadtor-395fa0258d56b24e39cd714834ffe0dcb365ea25.tar.gz
tor-395fa0258d56b24e39cd714834ffe0dcb365ea25.zip
compat: Fix unchecked return value from event_del()
Explicitly tell the compiler we don't care about it. Coverity CID 1434156 Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/common')
-rw-r--r--src/common/compat_libevent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/compat_libevent.c b/src/common/compat_libevent.c
index cb311ea462..0d0e4337bb 100644
--- a/src/common/compat_libevent.c
+++ b/src/common/compat_libevent.c
@@ -322,7 +322,7 @@ mainloop_event_cancel(mainloop_event_t *event)
{
if (!event)
return;
- event_del(event->ev);
+ (void) event_del(event->ev);
}
/** Cancel <b>event</b> and release all storage associated with it. */