diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2007-05-20 16:03:55 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2007-05-20 16:03:55 +0000 |
| commit | 56a50b9f0e7d47cfda34afe7e19dd51c08e3d9ba (patch) | |
| tree | 348fe1c5199a2e370dde196adfbe8eb608e4be77 /test | |
| parent | 7697347fd4326931413e56999ab33b37b590ccf6 (diff) | |
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
Diffstat (limited to 'test')
| -rw-r--r-- | test/threads.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
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) |
