changeset 4506:b577f47379f3

Fixed compile warnings
author Sam Lantinga <slouken@libsdl.org>
date Mon, 12 Jul 2010 00:35:14 -0700
parents f78a602ac135
children dbf3fa541096
files include/SDL_clipboard.h src/events/SDL_clipboardevents.c src/events/SDL_clipboardevents_c.h src/video/SDL_clipboard.c
diffstat 4 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/include/SDL_clipboard.h	Mon Jul 12 00:33:24 2010 -0700
+++ b/include/SDL_clipboard.h	Mon Jul 12 00:35:14 2010 -0700
@@ -53,14 +53,14 @@
  *
  * \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++ */
--- a/src/events/SDL_clipboardevents.c	Mon Jul 12 00:33:24 2010 -0700
+++ b/src/events/SDL_clipboardevents.c	Mon Jul 12 00:35:14 2010 -0700
@@ -29,7 +29,7 @@
 
 
 int
-SDL_SendClipboardUpdate()
+SDL_SendClipboardUpdate(void)
 {
     int posted;
 
--- a/src/events/SDL_clipboardevents_c.h	Mon Jul 12 00:33:24 2010 -0700
+++ b/src/events/SDL_clipboardevents_c.h	Mon Jul 12 00:35:14 2010 -0700
@@ -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 */
 
--- a/src/video/SDL_clipboard.c	Mon Jul 12 00:33:24 2010 -0700
+++ b/src/video/SDL_clipboard.c	Mon Jul 12 00:35:14 2010 -0700
@@ -42,7 +42,7 @@
 }
 
 char *
-SDL_GetClipboardText()
+SDL_GetClipboardText(void)
 {
     SDL_VideoDevice *_this = SDL_GetVideoDevice();
 
@@ -58,7 +58,7 @@
 }
 
 SDL_bool
-SDL_HasClipboardText()
+SDL_HasClipboardText(void)
 {
     SDL_VideoDevice *_this = SDL_GetVideoDevice();