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:
parent
734b23e598
commit
19b3e44ce5
|
@ -1052,7 +1052,7 @@ InitOutput (ScreenInfo *screenInfo, int argc, char *argv[])
|
|||
*/
|
||||
|
||||
static Bool
|
||||
winCheckDisplayNumber ()
|
||||
winCheckDisplayNumber (void)
|
||||
{
|
||||
int nDisp;
|
||||
HANDLE mutex;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -1428,7 +1428,7 @@ CheckAnotherWindowManager (Display *pDisplay, DWORD dwScreen)
|
|||
*/
|
||||
|
||||
void
|
||||
winDeinitMultiWindowWM ()
|
||||
winDeinitMultiWindowWM (void)
|
||||
{
|
||||
ErrorF ("winDeinitMultiWindowWM - Noting shutdown in progress\n");
|
||||
g_shutdown = TRUE;
|
||||
|
|
|
@ -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];
|
||||
|
|
|
@ -105,7 +105,7 @@ SILENTEXIT { return SILENTEXIT; }
|
|||
* Run-of-the mill requirement for yacc
|
||||
*/
|
||||
int
|
||||
yywrap ()
|
||||
yywrap (void)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user