diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-04-16 13:58:37 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-04-16 13:58:37 -0400 |
| commit | 43f8c072241e162283751c28de18dc4658470d6e (patch) | |
| tree | 96d01ed12d13768672c8f903935dd97fc9d91539 /lib/pthreads | |
| parent | 7b1b9afc9e5ce7f044958add4817b009db29caf4 (diff) | |
Automatically add return for unreachable code blocks (following a
_Noreturn) to make TinyCC happy
Diffstat (limited to 'lib/pthreads')
| -rw-r--r-- | lib/pthreads/pthreads.tm | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/pthreads/pthreads.tm b/lib/pthreads/pthreads.tm index fee7ce5d..8fca6bd6 100644 --- a/lib/pthreads/pthreads.tm +++ b/lib/pthreads/pthreads.tm @@ -82,7 +82,6 @@ struct IntQueue(_queue:@[Int], _mutex:@pthread_mutex_t, _cond:@pthread_cond_t) n = q._queue.pop(1) q._mutex.unlock() return n! - fail("Unreachable") func main() jobs := IntQueue.new() |
