Placate static analysis with an assertion.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 10 Apr 2015 21:40:50 -0400
changeset 9546d997877cdad7
parent 9545 52560d9d0ceb
child 9547 208ccaf7b64c
Placate static analysis with an assertion.
src/video/SDL_video.c
     1.1 --- a/src/video/SDL_video.c	Fri Apr 10 21:15:51 2015 -0400
     1.2 +++ b/src/video/SDL_video.c	Fri Apr 10 21:40:50 2015 -0400
     1.3 @@ -2055,6 +2055,7 @@
     1.4          if (SDL_GetWindowGammaRamp(window, NULL, NULL, NULL) < 0) {
     1.5              return -1;
     1.6          }
     1.7 +        SDL_assert(window->gamma != NULL);
     1.8      }
     1.9  
    1.10      if (red) {