From: Eric Blake Date: Wed, 22 Oct 2008 11:47:28 +0000 (-0600) Subject: glthread/thread: avoid compiler warning X-Git-Tag: v0.1~6786 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=82815032e8d476c22edde5e36f70c25038638aab;p=gnulib.git 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 46ecb9893..0dca26b48 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 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 * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on older cygwin. diff --git a/lib/glthread/thread.c b/lib/glthread/thread.c index 4ebfc5446..fa8aede79 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