Skip to content

Commit

Permalink
Readability: remove const-qualifation from function declaration
Browse files Browse the repository at this point in the history
const-qualification of parameters only has an effect in function definitions
  • Loading branch information
1bsyl committed Oct 30, 2019
1 parent 60d3965 commit 3d100df
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/SDL.c
Expand Up @@ -56,7 +56,7 @@ extern int SDL_HelperWindowDestroy(void);
/* 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
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)
{
#ifdef __WIN32__
Expand Down
4 changes: 2 additions & 2 deletions src/SDL_assert.c
Expand Up @@ -121,10 +121,10 @@ static void SDL_GenerateAssertionReport(void)
parts of SDL, because we don't want anything calling it without an
extremely good reason. */
#if defined(__WATCOMC__)
extern void SDL_ExitProcess(const int exitcode);
extern void SDL_ExitProcess(int exitcode);
#pragma aux SDL_ExitProcess aborts;
#endif
extern SDL_NORETURN void SDL_ExitProcess(const int exitcode);
extern SDL_NORETURN void SDL_ExitProcess(int exitcode);


#if defined(__WATCOMC__)
Expand Down
4 changes: 2 additions & 2 deletions src/dynapi/SDL_dynapi.c
Expand Up @@ -280,10 +280,10 @@ static void dynapi_warn(const char *msg)
parts of SDL, because we don't want anything calling it without an
extremely good reason. */
#if defined(__WATCOMC__)
void SDL_ExitProcess(const int exitcode);
void SDL_ExitProcess(int exitcode);
#pragma aux SDL_ExitProcess aborts;
#endif
SDL_NORETURN void SDL_ExitProcess(const int exitcode);
SDL_NORETURN void SDL_ExitProcess(int exitcode);


static void
Expand Down

0 comments on commit 3d100df

Please sign in to comment.