Commit 59e510b0b664886171259141c1352cf462453942

Ryan C. Gordon 2019-06-14T21:39:51

assert: Possibly fixing compiler warning on Android.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/SDL_assert.c b/src/SDL_assert.c
index b55c5a8..0bab1f7 100644
--- a/src/SDL_assert.c
+++ b/src/SDL_assert.c
@@ -378,7 +378,7 @@ SDL_ReportAssertion(SDL_assert_data *data, const char *func, const char *file,
     {
         case SDL_ASSERTION_ABORT:
             SDL_AbortAssertion();
-            return SDL_ASSERTION_IGNORE;  /* shouldn't return, but oh well. */
+            break;  /* shouldn't return, but oh well. */
 
         case SDL_ASSERTION_ALWAYS_IGNORE:
             state = SDL_ASSERTION_IGNORE;