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>
This commit is contained in:
Jon TURNEY 2009-01-19 17:03:23 +00:00
parent 734b23e598
commit 19b3e44ce5
9 changed files with 15 additions and 15 deletions

View File

@ -1052,7 +1052,7 @@ InitOutput (ScreenInfo *screenInfo, int argc, char *argv[])
*/ */
static Bool static Bool
winCheckDisplayNumber () winCheckDisplayNumber (void)
{ {
int nDisp; int nDisp;
HANDLE mutex; HANDLE mutex;

View File

@ -59,7 +59,7 @@ extern HWND g_hwndClipboard;
*/ */
Bool Bool
winInitClipboard () winInitClipboard (void)
{ {
ErrorF ("winInitClipboard ()\n"); ErrorF ("winInitClipboard ()\n");
@ -90,7 +90,7 @@ winInitClipboard ()
*/ */
HWND HWND
winClipboardCreateMessagingWindow () winClipboardCreateMessagingWindow (void)
{ {
WNDCLASS wc; WNDCLASS wc;
HWND hwnd; HWND hwnd;

View File

@ -561,7 +561,7 @@ winConfigFiles ()
} }
#else #else
Bool Bool
winConfigFiles () winConfigFiles (void)
{ {
MessageType from; MessageType from;
@ -578,14 +578,14 @@ winConfigFiles ()
Bool Bool
winConfigOptions () winConfigOptions (void)
{ {
return TRUE; return TRUE;
} }
Bool Bool
winConfigScreens () winConfigScreens (void)
{ {
return TRUE; return TRUE;
} }

View File

@ -48,7 +48,7 @@ extern const GUID _IID_IDirectDraw4;
*/ */
void void
winDetectSupportedEngines () winDetectSupportedEngines (void)
{ {
OSVERSIONINFO osvi; OSVERSIONINFO osvi;
@ -285,7 +285,7 @@ winSetEngine (ScreenPtr pScreen)
*/ */
Bool Bool
winGetDDProcAddresses () winGetDDProcAddresses (void)
{ {
Bool fReturn = TRUE; Bool fReturn = TRUE;

View File

@ -311,7 +311,7 @@ winInitializeModeKeyStates (void)
*/ */
void void
winRestoreModeKeyStates () winRestoreModeKeyStates (void)
{ {
DWORD dwKeyState; DWORD dwKeyState;
BOOL processEvents = TRUE; BOOL processEvents = TRUE;
@ -499,7 +499,7 @@ winIsFakeCtrl_L (UINT message, WPARAM wParam, LPARAM lParam)
*/ */
void void
winKeybdReleaseKeys () winKeybdReleaseKeys (void)
{ {
int i; int i;

View File

@ -149,7 +149,7 @@ winKeyboardMessageHookLL (int iCode, WPARAM wParam, LPARAM lParam)
*/ */
Bool Bool
winInstallKeyboardHookLL () winInstallKeyboardHookLL (void)
{ {
OSVERSIONINFO osvi = {0}; OSVERSIONINFO osvi = {0};
@ -186,7 +186,7 @@ winInstallKeyboardHookLL ()
*/ */
void void
winRemoveKeyboardHookLL () winRemoveKeyboardHookLL (void)
{ {
if (g_hhookKeyboardLL) if (g_hhookKeyboardLL)
UnhookWindowsHookEx (g_hhookKeyboardLL); UnhookWindowsHookEx (g_hhookKeyboardLL);

View File

@ -1428,7 +1428,7 @@ CheckAnotherWindowManager (Display *pDisplay, DWORD dwScreen)
*/ */
void void
winDeinitMultiWindowWM () winDeinitMultiWindowWM (void)
{ {
ErrorF ("winDeinitMultiWindowWM - Noting shutdown in progress\n"); ErrorF ("winDeinitMultiWindowWM - Noting shutdown in progress\n");
g_shutdown = TRUE; g_shutdown = TRUE;

View File

@ -730,7 +730,7 @@ winIconIsOverride(unsigned hiconIn)
* Load it into prefs structure for use by other functions * Load it into prefs structure for use by other functions
*/ */
void void
LoadPreferences () LoadPreferences (void)
{ {
char *home; char *home;
char fname[PATH_MAX+NAME_MAX+2]; char fname[PATH_MAX+NAME_MAX+2];

View File

@ -105,7 +105,7 @@ SILENTEXIT { return SILENTEXIT; }
* Run-of-the mill requirement for yacc * Run-of-the mill requirement for yacc
*/ */
int int
yywrap () yywrap (void)
{ {
return 1; return 1;
} }