mirror of
				https://github.com/libsdl-org/SDL.git
				synced 2025-11-04 01:34:38 +00:00 
			
		
		
		
	Readability: remove const-qualifation from function declaration
const-qualification of parameters only has an effect in function definitions
This commit is contained in:
		@@ -56,7 +56,7 @@ extern int SDL_HelperWindowDestroy(void);
 | 
				
			|||||||
/* This is not declared in any header, although it is shared between some
 | 
					/* This is not declared in any header, although it is shared between some
 | 
				
			||||||
    parts of SDL, because we don't want anything calling it without an
 | 
					    parts of SDL, because we don't want anything calling it without an
 | 
				
			||||||
    extremely good reason. */
 | 
					    extremely good reason. */
 | 
				
			||||||
extern SDL_NORETURN void SDL_ExitProcess(const int exitcode);
 | 
					extern SDL_NORETURN void SDL_ExitProcess(int exitcode);
 | 
				
			||||||
SDL_NORETURN void SDL_ExitProcess(const int exitcode)
 | 
					SDL_NORETURN void SDL_ExitProcess(const int exitcode)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
#ifdef __WIN32__
 | 
					#ifdef __WIN32__
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -121,10 +121,10 @@ static void SDL_GenerateAssertionReport(void)
 | 
				
			|||||||
    parts of SDL, because we don't want anything calling it without an
 | 
					    parts of SDL, because we don't want anything calling it without an
 | 
				
			||||||
    extremely good reason. */
 | 
					    extremely good reason. */
 | 
				
			||||||
#if defined(__WATCOMC__)
 | 
					#if defined(__WATCOMC__)
 | 
				
			||||||
extern void SDL_ExitProcess(const int exitcode);
 | 
					extern void SDL_ExitProcess(int exitcode);
 | 
				
			||||||
#pragma aux SDL_ExitProcess aborts;
 | 
					#pragma aux SDL_ExitProcess aborts;
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
extern SDL_NORETURN void SDL_ExitProcess(const int exitcode);
 | 
					extern SDL_NORETURN void SDL_ExitProcess(int exitcode);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if defined(__WATCOMC__)
 | 
					#if defined(__WATCOMC__)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -280,10 +280,10 @@ static void dynapi_warn(const char *msg)
 | 
				
			|||||||
    parts of SDL, because we don't want anything calling it without an
 | 
					    parts of SDL, because we don't want anything calling it without an
 | 
				
			||||||
    extremely good reason. */
 | 
					    extremely good reason. */
 | 
				
			||||||
#if defined(__WATCOMC__)
 | 
					#if defined(__WATCOMC__)
 | 
				
			||||||
void SDL_ExitProcess(const int exitcode);
 | 
					void SDL_ExitProcess(int exitcode);
 | 
				
			||||||
#pragma aux SDL_ExitProcess aborts;
 | 
					#pragma aux SDL_ExitProcess aborts;
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
SDL_NORETURN void SDL_ExitProcess(const int exitcode);
 | 
					SDL_NORETURN void SDL_ExitProcess(int exitcode);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void
 | 
					static void
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user