SDL/src/thread
Sam Lantinga b678a98024 Fixed compiler warning
```
 ./src/thread/pthread/SDL_syssem.c:140:12: warning: variable 'retval' is used uninitialized whenever 'while' loop exits because its condition is false [-Wsometimes-uninitialized]
    while (sem_trywait(&sem->sem) != 0) {
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~
./src/thread/pthread/SDL_syssem.c:149:12: note: uninitialized use occurs here
    return retval;
           ^~~~~~
./src/thread/pthread/SDL_syssem.c:140:12: note: remove the condition if it is always true
    while (sem_trywait(&sem->sem) != 0) {
```

This was a legitimate bug, thank you clang!

Fixes https://github.com/libsdl-org/SDL/issues/6830
2022-12-17 06:58:02 -08:00
..
generic Added support for clang thread-safety analysis 2022-12-14 09:53:39 -08:00
n3ds Added support for clang thread-safety analysis 2022-12-14 09:53:39 -08:00
ngage Added support for clang thread-safety analysis 2022-12-14 09:53:39 -08:00
ps2 Convert ticks to 64-bit, added nanosecond precision to the API 2022-12-02 12:37:41 -08:00
psp Added support for clang thread-safety analysis 2022-12-14 09:53:39 -08:00
pthread Fixed compiler warning 2022-12-17 06:58:02 -08:00
stdcpp Added support for clang thread-safety analysis 2022-12-14 09:53:39 -08:00
vita Added support for clang thread-safety analysis 2022-12-14 09:53:39 -08:00
windows Added support for clang thread-safety analysis 2022-12-14 09:53:39 -08:00
SDL_systhread.h Update for SDL3 coding style (#6717) 2022-11-30 12:51:59 -08:00
SDL_thread.c Convert ticks to 64-bit, added nanosecond precision to the API 2022-12-02 12:37:41 -08:00
SDL_thread_c.h Update for SDL3 coding style (#6717) 2022-11-30 12:51:59 -08:00