mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2025-02-17 20:34:28 +01:00
Static analysis fix: let clang know _this->displays isn't NULL.
This commit is contained in:
parent
415675bef0
commit
b99a6253da
@ -115,6 +115,7 @@ static SDL_VideoDevice *_this = NULL;
|
||||
SDL_UninitializedVideo(); \
|
||||
return retval; \
|
||||
} \
|
||||
SDL_assert(_this->displays != NULL); \
|
||||
if (displayIndex < 0 || displayIndex >= _this->num_displays) { \
|
||||
SDL_SetError("displayIndex must be in the range 0 - %d", \
|
||||
_this->num_displays - 1); \
|
||||
|
Loading…
Reference in New Issue
Block a user