mirror of
				https://github.com/libsdl-org/SDL.git
				synced 2025-11-03 17:24:34 +00:00 
			
		
		
		
	assert: Another attempt to quiet compiler warnings.
This commit is contained in:
		@@ -376,10 +376,6 @@ SDL_ReportAssertion(SDL_assert_data *data, const char *func, const char *file,
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    switch (state)
 | 
					    switch (state)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        case SDL_ASSERTION_ABORT:
 | 
					 | 
				
			||||||
            SDL_AbortAssertion();
 | 
					 | 
				
			||||||
            break;  /* shouldn't return, but oh well. */
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        case SDL_ASSERTION_ALWAYS_IGNORE:
 | 
					        case SDL_ASSERTION_ALWAYS_IGNORE:
 | 
				
			||||||
            state = SDL_ASSERTION_IGNORE;
 | 
					            state = SDL_ASSERTION_IGNORE;
 | 
				
			||||||
            data->always_ignore = 1;
 | 
					            data->always_ignore = 1;
 | 
				
			||||||
@@ -389,6 +385,10 @@ SDL_ReportAssertion(SDL_assert_data *data, const char *func, const char *file,
 | 
				
			|||||||
        case SDL_ASSERTION_RETRY:
 | 
					        case SDL_ASSERTION_RETRY:
 | 
				
			||||||
        case SDL_ASSERTION_BREAK:
 | 
					        case SDL_ASSERTION_BREAK:
 | 
				
			||||||
            break;  /* macro handles these. */
 | 
					            break;  /* macro handles these. */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        case SDL_ASSERTION_ABORT:
 | 
				
			||||||
 | 
					            SDL_AbortAssertion();
 | 
				
			||||||
 | 
					            /*break;  ...shouldn't return, but oh well. */
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    assertion_running--;
 | 
					    assertion_running--;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user