glthread/thread: avoid compiler warning
authorEric Blake <ebb9@byu.net>
Wed, 22 Oct 2008 11:47:28 +0000 (05:47 -0600)
committerEric Blake <ebb9@byu.net>
Wed, 22 Oct 2008 11:47:28 +0000 (05:47 -0600)
* lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
Add unreachable abort to silence compiler.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
lib/glthread/thread.c

index 46ecb9893889a50d9df9d08fc527529f81c1d16c..0dca26b48c3d6d17e98e8e4e4a903f11bb1ab9f9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-10-22  Eric Blake  <ebb9@byu.net>
+
+       glthread/thread: avoid compiler warning
+       * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
+       Add unreachable abort to silence compiler.
+
 2008-10-22  Eric Blake  <ebb9@byu.net>
 
        netdb: also supply struct addrinfo for cygwin 1.5.x
index 4ebfc5446f482257d3f3b70fbd0a300888d2f718..fa8aede797af4b65d60f74c7b658a4ed1abb66f0 100644 (file)
@@ -210,6 +210,7 @@ gl_thread_exit_func (void *retval)
   gl_thread_t thread = gl_thread_self ();
   thread->result = retval;
   _endthreadex (0); /* calls ExitThread (0) */
+  abort ();
 }
 
 #endif