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

[tor-commits] [tor/master] Mark some unreachable code in compat_winthreads.c as unreachable



commit 09562421589c055a6cb49c802a248f727390d158
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Thu Oct 19 13:21:48 2017 -0400

    Mark some unreachable code in compat_winthreads.c as unreachable
---
 src/common/compat_winthreads.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/common/compat_winthreads.c b/src/common/compat_winthreads.c
index 50a3c498c..122e0f016 100644
--- a/src/common/compat_winthreads.c
+++ b/src/common/compat_winthreads.c
@@ -48,10 +48,12 @@ void
 spawn_exit(void)
 {
   _endthread();
+  // LCOV_EXCL_START
   //we should never get here. my compiler thinks that _endthread returns, this
   //is an attempt to fool it.
   tor_assert(0);
   _exit(0);
+  // LCOV_EXCL_STOP
 }
 
 void

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