diff options
author | Jon TURNEY <jon.turney@dronecode.org.uk> | 2009-01-19 17:03:23 +0000 |
---|---|---|
committer | Jon TURNEY <jon.turney@dronecode.org.uk> | 2009-02-12 12:03:55 +0000 |
commit | 19b3e44ce51cc2f74ba388cb2cd3a26467848e9a (patch) | |
tree | 3c256f7f2f266fe0c1e26cbf9d38fd76a1867f3f | |
parent | 734b23e5982e171031077a2d5d6b5dc2a12e1a70 (diff) |
Cygwin/X: Fix -Wold-style-definition warnings
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@dronecode.org.uk>
-rw-r--r-- | hw/xwin/InitOutput.c | 2 | ||||
-rw-r--r-- | hw/xwin/winclipboardinit.c | 4 | ||||
-rw-r--r-- | hw/xwin/winconfig.c | 6 | ||||
-rw-r--r-- | hw/xwin/winengine.c | 4 | ||||
-rw-r--r-- | hw/xwin/winkeybd.c | 4 | ||||
-rwxr-xr-x | hw/xwin/winkeyhook.c | 4 | ||||
-rw-r--r-- | hw/xwin/winmultiwindowwm.c | 2 | ||||
-rw-r--r-- | hw/xwin/winprefs.c | 2 | ||||
-rw-r--r-- | 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 1b37bb723..2d17aaf81 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 6a0cbaf2c..3e73bc610 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 13b8b3adf..a9c4c46e8 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 f0bc671e2..fb9aed8a0 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 5e9c4e34a..611ea5d55 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 53d91e6ee..2d6ed18b7 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 ca9460a76..ea9dfca36 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 73d543af9..0c48bfebb 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 ee2478bcc..9a384a2cd 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; } |