[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] compat: Fix unchecked return value from event_del()



commit 395fa0258d56b24e39cd714834ffe0dcb365ea25
Author: David Goulet <dgoulet@xxxxxxxxxxxxxx>
Date:   Mon Apr 9 14:09:40 2018 -0400

    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@xxxxxxxxxxxxxx>
---
 src/common/compat_libevent.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/common/compat_libevent.c b/src/common/compat_libevent.c
index cb311ea46..0d0e4337b 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. */

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits