From 56a50b9f0e7d47cfda34afe7e19dd51c08e3d9ba Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Sun, 20 May 2007 16:03:55 +0000 Subject: Rats, Sun's compilers error out if there is no return statement in the thread function, so we'll have to just live with the "statement unreachable" warning... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5847 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- test/threads.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/threads.cxx b/test/threads.cxx index df2c4920a..eece135f7 100644 --- a/test/threads.cxx +++ b/test/threads.cxx @@ -108,6 +108,11 @@ void* prime_func(void* p) Fl::unlock(); } } + // This return can never be reached and thus will generate a warning with + // some compilers, however we need to have a return statement or other + // compilers will complain there is no return statement... You can't + // win sometimes... :( + return 0; } int main(int argc, char **argv) -- cgit v1.2.3