From: Eric Blake Date: Wed, 22 Oct 2008 11:47:28 +0000 (-0600) Subject: glthread/thread: avoid compiler warning X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=82815032e8d476c22edde5e36f70c25038638aab;p=pspp 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 --- diff --git a/ChangeLog b/ChangeLog index 46ecb98938..0dca26b48c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-10-22 Eric Blake + + 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 netdb: also supply struct addrinfo for cygwin 1.5.x diff --git a/lib/glthread/thread.c b/lib/glthread/thread.c index 4ebfc5446f..fa8aede797 100644 --- a/lib/glthread/thread.c +++ b/lib/glthread/thread.c @@ -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