[PATCH 01/12] Cygwin/X: Fix -Wold-style-definition warnings
Jon TURNEY
jon.turney at dronecode.org.uk
Wed Feb 4 05:11:23 PST 2009
Fix old-style definition warnings caused by definitions with empty
parameter lists "()", which should be "(void)" to indicate the function
takes no parameters, rather than unspecified parameters
Signed-off-by: Jon TURNEY <jon.turney at dronecode.org.uk>
---
hw/xwin/InitOutput.c | 2 +-
hw/xwin/winclipboardinit.c | 4 ++--
hw/xwin/winconfig.c | 6 +++---
hw/xwin/winengine.c | 4 ++--
hw/xwin/winkeybd.c | 4 ++--
hw/xwin/winkeyhook.c | 4 ++--
hw/xwin/winmultiwindowwm.c | 2 +-
hw/xwin/winprefs.c | 2 +-
hw/xwin/winprefslex.l | 2 +-
9 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/hw/xwin/InitOutput.c b/hw/xwin/InitOutput.c
index 1b37bb7..2d17aaf 100644
--- a/hw/xwin/InitOutput.c
+++ b/hw/xwin/InitOutput.c
@@ -1052,7 +1052,7 @@ InitOutput (ScreenInfo *screenInfo, int argc, char *argv[])
*/
static Bool
-winCheckDisplayNumber ()
+winCheckDisplayNumber (void)
{
int nDisp;
HANDLE mutex;
diff --git a/hw/xwin/winclipboardinit.c b/hw/xwin/winclipboardinit.c
index 6a0cbaf..3e73bc6 100644
--- a/hw/xwin/winclipboardinit.c
+++ b/hw/xwin/winclipboardinit.c
@@ -59,7 +59,7 @@ extern HWND g_hwndClipboard;
*/
Bool
-winInitClipboard ()
+winInitClipboard (void)
{
ErrorF ("winInitClipboard ()\n");
@@ -90,7 +90,7 @@ winInitClipboard ()
*/
HWND
-winClipboardCreateMessagingWindow ()
+winClipboardCreateMessagingWindow (void)
{
WNDCLASS wc;
HWND hwnd;
diff --git a/hw/xwin/winconfig.c b/hw/xwin/winconfig.c
index 13b8b3a..a9c4c46 100644
--- a/hw/xwin/winconfig.c
+++ b/hw/xwin/winconfig.c
@@ -561,7 +561,7 @@ winConfigFiles ()
}
#else
Bool
-winConfigFiles ()
+winConfigFiles (void)
{
MessageType from;
@@ -578,14 +578,14 @@ winConfigFiles ()
Bool
-winConfigOptions ()
+winConfigOptions (void)
{
return TRUE;
}
Bool
-winConfigScreens ()
+winConfigScreens (void)
{
return TRUE;
}
diff --git a/hw/xwin/winengine.c b/hw/xwin/winengine.c
index f0bc671..fb9aed8 100644
--- a/hw/xwin/winengine.c
+++ b/hw/xwin/winengine.c
@@ -48,7 +48,7 @@ extern const GUID _IID_IDirectDraw4;
*/
void
-winDetectSupportedEngines ()
+winDetectSupportedEngines (void)
{
OSVERSIONINFO osvi;
@@ -285,7 +285,7 @@ winSetEngine (ScreenPtr pScreen)
*/
Bool
-winGetDDProcAddresses ()
+winGetDDProcAddresses (void)
{
Bool fReturn = TRUE;
diff --git a/hw/xwin/winkeybd.c b/hw/xwin/winkeybd.c
index 5e9c4e3..611ea5d 100644
--- a/hw/xwin/winkeybd.c
+++ b/hw/xwin/winkeybd.c
@@ -311,7 +311,7 @@ winInitializeModeKeyStates (void)
*/
void
-winRestoreModeKeyStates ()
+winRestoreModeKeyStates (void)
{
DWORD dwKeyState;
BOOL processEvents = TRUE;
@@ -499,7 +499,7 @@ winIsFakeCtrl_L (UINT message, WPARAM wParam, LPARAM lParam)
*/
void
-winKeybdReleaseKeys ()
+winKeybdReleaseKeys (void)
{
int i;
diff --git a/hw/xwin/winkeyhook.c b/hw/xwin/winkeyhook.c
index 53d91e6..2d6ed18 100755
--- a/hw/xwin/winkeyhook.c
+++ b/hw/xwin/winkeyhook.c
@@ -149,7 +149,7 @@ winKeyboardMessageHookLL (int iCode, WPARAM wParam, LPARAM lParam)
*/
Bool
-winInstallKeyboardHookLL ()
+winInstallKeyboardHookLL (void)
{
OSVERSIONINFO osvi = {0};
@@ -186,7 +186,7 @@ winInstallKeyboardHookLL ()
*/
void
-winRemoveKeyboardHookLL ()
+winRemoveKeyboardHookLL (void)
{
if (g_hhookKeyboardLL)
UnhookWindowsHookEx (g_hhookKeyboardLL);
diff --git a/hw/xwin/winmultiwindowwm.c b/hw/xwin/winmultiwindowwm.c
index ca9460a..ea9dfca 100644
--- a/hw/xwin/winmultiwindowwm.c
+++ b/hw/xwin/winmultiwindowwm.c
@@ -1428,7 +1428,7 @@ CheckAnotherWindowManager (Display *pDisplay, DWORD dwScreen)
*/
void
-winDeinitMultiWindowWM ()
+winDeinitMultiWindowWM (void)
{
ErrorF ("winDeinitMultiWindowWM - Noting shutdown in progress\n");
g_shutdown = TRUE;
diff --git a/hw/xwin/winprefs.c b/hw/xwin/winprefs.c
index 73d543a..0c48bfe 100644
--- a/hw/xwin/winprefs.c
+++ b/hw/xwin/winprefs.c
@@ -730,7 +730,7 @@ winIconIsOverride(unsigned hiconIn)
* Load it into prefs structure for use by other functions
*/
void
-LoadPreferences ()
+LoadPreferences (void)
{
char *home;
char fname[PATH_MAX+NAME_MAX+2];
diff --git a/hw/xwin/winprefslex.l b/hw/xwin/winprefslex.l
index ee2478b..9a384a2 100644
--- a/hw/xwin/winprefslex.l
+++ b/hw/xwin/winprefslex.l
@@ -105,7 +105,7 @@ SILENTEXIT { return SILENTEXIT; }
* Run-of-the mill requirement for yacc
*/
int
-yywrap ()
+yywrap (void)
{
return 1;
}
--
1.6.0.4
More information about the xorg
mailing list