Skip to content

Commit

Permalink
assert: Another attempt to quiet compiler warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jun 15, 2019
1 parent 59e510b commit fffa791
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/SDL_assert.c
Expand Up @@ -376,10 +376,6 @@ SDL_ReportAssertion(SDL_assert_data *data, const char *func, const char *file,

switch (state)
{
case SDL_ASSERTION_ABORT:
SDL_AbortAssertion();
break; /* shouldn't return, but oh well. */

case SDL_ASSERTION_ALWAYS_IGNORE:
state = SDL_ASSERTION_IGNORE;
data->always_ignore = 1;
Expand All @@ -389,6 +385,10 @@ SDL_ReportAssertion(SDL_assert_data *data, const char *func, const char *file,
case SDL_ASSERTION_RETRY:
case SDL_ASSERTION_BREAK:
break; /* macro handles these. */

case SDL_ASSERTION_ABORT:
SDL_AbortAssertion();
/*break; ...shouldn't return, but oh well. */
}

assertion_running--;
Expand Down

0 comments on commit fffa791

Please sign in to comment.