changeset 10699:a8d2d376c1df

glthread/thread: avoid compiler warning * 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>
author Eric Blake <ebb9@byu.net>
date Wed, 22 Oct 2008 05:47:28 -0600
parents bd389c336def
children 85c66517b16a
files ChangeLog lib/glthread/thread.c
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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
--- a/lib/glthread/thread.c
+++ b/lib/glthread/thread.c
@@ -210,6 +210,7 @@
   gl_thread_t thread = gl_thread_self ();
   thread->result = retval;
   _endthreadex (0); /* calls ExitThread (0) */
+  abort ();
 }
 
 #endif