From 5c3d68df92caec24a4b056e3b6d9775e8b3525ce Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 12 Jul 2010 00:35:14 -0700 Subject: [PATCH] Fixed compile warnings --- include/SDL_clipboard.h | 4 ++-- src/events/SDL_clipboardevents.c | 2 +- src/events/SDL_clipboardevents_c.h | 2 +- src/video/SDL_clipboard.c | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/SDL_clipboard.h b/include/SDL_clipboard.h index 848c21d12..bc9e348db 100644 --- a/include/SDL_clipboard.h +++ b/include/SDL_clipboard.h @@ -53,14 +53,14 @@ extern DECLSPEC int SDLCALL SDL_SetClipboardText(const char *text); * * \sa SDL_SetClipboardText() */ -extern DECLSPEC char * SDLCALL SDL_GetClipboardText(); +extern DECLSPEC char * SDLCALL SDL_GetClipboardText(void); /** * \brief Returns whether the clipboard has text * * \sa SDL_GetClipboardText() */ -extern DECLSPEC SDL_bool SDLCALL SDL_HasClipboardText(); +extern DECLSPEC SDL_bool SDLCALL SDL_HasClipboardText(void); /* Ends C function definitions when using C++ */ diff --git a/src/events/SDL_clipboardevents.c b/src/events/SDL_clipboardevents.c index 7f8820047..2d5a2c48d 100644 --- a/src/events/SDL_clipboardevents.c +++ b/src/events/SDL_clipboardevents.c @@ -29,7 +29,7 @@ int -SDL_SendClipboardUpdate() +SDL_SendClipboardUpdate(void) { int posted; diff --git a/src/events/SDL_clipboardevents_c.h b/src/events/SDL_clipboardevents_c.h index 4d6a1f19a..9e35a5aba 100644 --- a/src/events/SDL_clipboardevents_c.h +++ b/src/events/SDL_clipboardevents_c.h @@ -24,7 +24,7 @@ #ifndef _SDL_clipboardevents_c_h #define _SDL_clipboardevents_c_h -extern int SDL_SendClipboardUpdate(); +extern int SDL_SendClipboardUpdate(void); #endif /* _SDL_clipboardevents_c_h */ diff --git a/src/video/SDL_clipboard.c b/src/video/SDL_clipboard.c index fc7e5fbb6..a414fa5ec 100644 --- a/src/video/SDL_clipboard.c +++ b/src/video/SDL_clipboard.c @@ -42,7 +42,7 @@ SDL_SetClipboardText(const char *text) } char * -SDL_GetClipboardText() +SDL_GetClipboardText(void) { SDL_VideoDevice *_this = SDL_GetVideoDevice(); @@ -58,7 +58,7 @@ SDL_GetClipboardText() } SDL_bool -SDL_HasClipboardText() +SDL_HasClipboardText(void) { SDL_VideoDevice *_this = SDL_GetVideoDevice();