Parcourir la source

Mark some unreachable code in compat_winthreads.c as unreachable

Nick Mathewson il y a 9 ans
Parent
commit
0956242158
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      src/common/compat_winthreads.c

+ 2 - 0
src/common/compat_winthreads.c

@@ -48,10 +48,12 @@ void
 spawn_exit(void)
 spawn_exit(void)
 {
 {
   _endthread();
   _endthread();
+  // LCOV_EXCL_START
   //we should never get here. my compiler thinks that _endthread returns, this
   //we should never get here. my compiler thinks that _endthread returns, this
   //is an attempt to fool it.
   //is an attempt to fool it.
   tor_assert(0);
   tor_assert(0);
   _exit(0);
   _exit(0);
+  // LCOV_EXCL_STOP
 }
 }
 
 
 void
 void