Fix more -Wstrict-prototypes warnings.
diff --git a/dlls/advapi32/tests/crypt.c b/dlls/advapi32/tests/crypt.c
index 2ccb474..1bb540e 100644
--- a/dlls/advapi32/tests/crypt.c
+++ b/dlls/advapi32/tests/crypt.c
@@ -494,7 +494,7 @@
return TRUE;
}
-static void test_enum_provider_types()
+static void test_enum_provider_types(void)
{
/* expected values */
DWORD dwProvType;
@@ -634,7 +634,7 @@
return TRUE;
}
-static void test_get_default_provider()
+static void test_get_default_provider(void)
{
/* expected results */
DWORD dwProvType = PROV_RSA_FULL;
@@ -708,7 +708,7 @@
LocalFree(provName);
}
-static void test_set_provider_ex()
+static void test_set_provider_ex(void)
{
DWORD result;
DWORD notNull = 5;
diff --git a/dlls/advapi32/tests/crypt_lmhash.c b/dlls/advapi32/tests/crypt_lmhash.c
index ff352c4..5a17f3d 100644
--- a/dlls/advapi32/tests/crypt_lmhash.c
+++ b/dlls/advapi32/tests/crypt_lmhash.c
@@ -27,7 +27,7 @@
typedef VOID (WINAPI *fnSystemFunction006)( PCSTR passwd, PSTR lmhash );
fnSystemFunction006 pSystemFunction006;
-static void test_SystemFunction006()
+static void test_SystemFunction006(void)
{
static unsigned char lmhash[16 + 1];
diff --git a/dlls/advapi32/tests/registry.c b/dlls/advapi32/tests/registry.c
index 0403772..c32e419 100644
--- a/dlls/advapi32/tests/registry.c
+++ b/dlls/advapi32/tests/registry.c
@@ -243,7 +243,7 @@
ok( !memcmp( dataW, foobarW, sizeof(foobarW) ), "data is not 'foobar'\n" );
}
-static void test_query_value_ex()
+static void test_query_value_ex(void)
{
DWORD ret;
DWORD size;
@@ -255,7 +255,7 @@
ok(type == REG_SZ, "type %ld is not REG_SZ\n", type);
}
-static void test_reg_open_key()
+static void test_reg_open_key(void)
{
DWORD ret = 0;
HKEY hkResult = NULL;
@@ -330,7 +330,7 @@
ok(ret == ERROR_INVALID_PARAMETER, "expected ERROR_INVALID_PARAMETER, got %ld\n", ret);
}
-static void test_reg_create_key()
+static void test_reg_create_key(void)
{
LONG ret;
HKEY hkey1, hkey2;
@@ -346,7 +346,7 @@
RegDeleteKey(hkey1, NULL);
}
-static void test_reg_close_key()
+static void test_reg_close_key(void)
{
DWORD ret = 0;
HKEY hkHandle;
@@ -369,7 +369,7 @@
"expected ERROR_INVALID_HANDLE or ERROR_BADKEY, got %ld\n", ret);
}
-static void test_reg_delete_key()
+static void test_reg_delete_key(void)
{
DWORD ret;
@@ -378,7 +378,7 @@
"expected ERROR_INVALID_PARAMETER or ERROR_ACCESS_DENIED, got %ld\n", ret);
}
-static void test_reg_save_key()
+static void test_reg_save_key(void)
{
DWORD ret;
@@ -386,7 +386,7 @@
ok(ret == ERROR_SUCCESS, "expected ERROR_SUCCESS, got %ld\n", ret);
}
-static void test_reg_load_key()
+static void test_reg_load_key(void)
{
DWORD ret;
HKEY hkHandle;
@@ -400,7 +400,7 @@
RegCloseKey(hkHandle);
}
-static void test_reg_unload_key()
+static void test_reg_unload_key(void)
{
DWORD ret;
diff --git a/dlls/advpack/tests/advpack.c b/dlls/advpack/tests/advpack.c
index 854eeaf..c1b5ec7 100644
--- a/dlls/advpack/tests/advpack.c
+++ b/dlls/advpack/tests/advpack.c
@@ -27,7 +27,7 @@
static HRESULT (WINAPI *pGetVersionFromFile)(LPSTR,LPDWORD,LPDWORD,BOOL);
static HRESULT (WINAPI *pDelNode)(LPCSTR,DWORD);
-static void version_test()
+static void version_test(void)
{
HRESULT hr;
DWORD major, minor;
@@ -49,7 +49,7 @@
HIWORD(minor), LOWORD(minor));
}
-static void delnode_test()
+static void delnode_test(void)
{
HRESULT hr;
HANDLE hn;
diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c
index 5e6f6c7..ec38856 100644
--- a/dlls/comctl32/listview.c
+++ b/dlls/comctl32/listview.c
@@ -549,7 +549,7 @@
return isW ? debugstr_wn(text, n) : debugstr_an((LPCSTR)text, n);
}
-static char* debug_getbuf()
+static char* debug_getbuf(void)
{
static int index = 0;
static char buffers[DEBUG_BUFFERS][DEBUG_BUFFER_SIZE];
diff --git a/dlls/comctl32/tests/imagelist.c b/dlls/comctl32/tests/imagelist.c
index 359d370..122007a 100644
--- a/dlls/comctl32/tests/imagelist.c
+++ b/dlls/comctl32/tests/imagelist.c
@@ -469,7 +469,7 @@
return TRUE;
}
-static void testMerge()
+static void testMerge(void)
{
HIMAGELIST himl1, himl2, hmerge;
HICON hicon1;
diff --git a/dlls/ddraw/tests/d3d.c b/dlls/ddraw/tests/d3d.c
index d9a313e..ba3bf23 100644
--- a/dlls/ddraw/tests/d3d.c
+++ b/dlls/ddraw/tests/d3d.c
@@ -41,7 +41,7 @@
}
-static void CreateDirect3D()
+static void CreateDirect3D(void)
{
HRESULT rc;
DDSURFACEDESC2 ddsd;
@@ -70,7 +70,7 @@
ok(rc==D3D_OK, "CreateDevice returned: %lx\n", rc);
}
-static void ReleaseDirect3D()
+static void ReleaseDirect3D(void)
{
if (lpD3DDevice != NULL)
{
@@ -97,7 +97,7 @@
}
}
-static void LightTest()
+static void LightTest(void)
{
HRESULT rc;
D3DLIGHT7 light;
diff --git a/dlls/ddraw/tests/ddrawmodes.c b/dlls/ddraw/tests/ddrawmodes.c
index c625d16..ae88cce 100644
--- a/dlls/ddraw/tests/ddrawmodes.c
+++ b/dlls/ddraw/tests/ddrawmodes.c
@@ -31,7 +31,7 @@
static int modes_size;
static LPDDSURFACEDESC modes;
-static void createdirectdraw()
+static void createdirectdraw(void)
{
HRESULT rc;
@@ -64,7 +64,7 @@
}
-static void releasedirectdraw()
+static void releasedirectdraw(void)
{
if( lpDD != NULL )
{
@@ -83,7 +83,7 @@
modes[modes_cnt++] = *lpddsd;
}
-static void flushdisplaymodes()
+static void flushdisplaymodes(void)
{
free(modes);
modes = 0;
@@ -100,7 +100,7 @@
return DDENUMRET_OK;
}
-void enumdisplaymodes()
+void enumdisplaymodes(void)
{
DDSURFACEDESC ddsd;
HRESULT rc;
@@ -138,7 +138,7 @@
}
}
-static void createsurface()
+static void createsurface(void)
{
DDSURFACEDESC ddsd;
DDSCAPS ddscaps;
@@ -157,7 +157,7 @@
ok(rc==DD_OK,"GetAttachedSurface returned: %lx\n",rc);
}
-static void destroysurface()
+static void destroysurface(void)
{
if( lpDDSPrimary != NULL )
{
@@ -166,7 +166,7 @@
}
}
-static void testsurface()
+static void testsurface(void)
{
const char* testMsg = "ddraw device context test";
HDC hdc;
@@ -197,7 +197,7 @@
}
}
-static void testdisplaymodes()
+static void testdisplaymodes(void)
{
int i;
diff --git a/dlls/ddraw/tests/dsurface.c b/dlls/ddraw/tests/dsurface.c
index 480355a..2b608e9 100644
--- a/dlls/ddraw/tests/dsurface.c
+++ b/dlls/ddraw/tests/dsurface.c
@@ -24,7 +24,7 @@
static LPDIRECTDRAW lpDD = NULL;
-static void CreateDirectDraw()
+static void CreateDirectDraw(void)
{
HRESULT rc;
@@ -36,7 +36,7 @@
}
-static void ReleaseDirectDraw()
+static void ReleaseDirectDraw(void)
{
if( lpDD != NULL )
{
@@ -45,7 +45,7 @@
}
}
-static void MipMapCreationTest()
+static void MipMapCreationTest(void)
{
LPDIRECTDRAWSURFACE lpDDSMipMapTest;
DDSURFACEDESC ddsd;
diff --git a/dlls/dinput/tests/joystick.c b/dlls/dinput/tests/joystick.c
index fe9333d..6e776cc 100644
--- a/dlls/dinput/tests/joystick.c
+++ b/dlls/dinput/tests/joystick.c
@@ -69,7 +69,7 @@
(LPDIOBJECTDATAFORMAT)dfDIJoystickTest
};
-HWND get_hwnd()
+HWND get_hwnd(void)
{
HWND hwnd=GetForegroundWindow();
if (!hwnd)
diff --git a/dlls/dinput/tests/keyboard.c b/dlls/dinput/tests/keyboard.c
index f88254b..3d51d2d 100644
--- a/dlls/dinput/tests/keyboard.c
+++ b/dlls/dinput/tests/keyboard.c
@@ -67,7 +67,7 @@
return version;
}
-static void keyboard_tests()
+static void keyboard_tests(void)
{
}
diff --git a/dlls/dmband/dmband_private.h b/dlls/dmband/dmband_private.h
index f32e783..e14f1b1 100644
--- a/dlls/dmband/dmband_private.h
+++ b/dlls/dmband/dmband_private.h
@@ -138,8 +138,8 @@
* Dll lifetime tracking declaration for dmband.dll
*/
extern LONG DMBAND_refCount;
-static inline void DMBAND_LockModule() { InterlockedIncrement( &DMBAND_refCount ); }
-static inline void DMBAND_UnlockModule() { InterlockedDecrement( &DMBAND_refCount ); }
+static inline void DMBAND_LockModule(void) { InterlockedIncrement( &DMBAND_refCount ); }
+static inline void DMBAND_UnlockModule(void) { InterlockedDecrement( &DMBAND_refCount ); }
/*****************************************************************************
* Misc.
diff --git a/dlls/dmcompos/dmcompos_private.h b/dlls/dmcompos/dmcompos_private.h
index d3155f8..52a70bc 100644
--- a/dlls/dmcompos/dmcompos_private.h
+++ b/dlls/dmcompos/dmcompos_private.h
@@ -144,8 +144,8 @@
* Dll lifetime tracking declaration for dmcompos.dll
*/
extern LONG DMCOMPOS_refCount;
-static inline void DMCOMPOS_LockModule() { InterlockedIncrement( &DMCOMPOS_refCount ); }
-static inline void DMCOMPOS_UnlockModule() { InterlockedDecrement( &DMCOMPOS_refCount ); }
+static inline void DMCOMPOS_LockModule(void) { InterlockedIncrement( &DMCOMPOS_refCount ); }
+static inline void DMCOMPOS_UnlockModule(void) { InterlockedDecrement( &DMCOMPOS_refCount ); }
/*****************************************************************************
* Misc.
diff --git a/dlls/dmime/dmime_private.h b/dlls/dmime/dmime_private.h
index 2374af2..2107688 100644
--- a/dlls/dmime/dmime_private.h
+++ b/dlls/dmime/dmime_private.h
@@ -547,8 +547,8 @@
* Dll lifetime tracking declaration for dmime.dll
*/
extern LONG DMIME_refCount;
-static inline void DMIME_LockModule() { InterlockedIncrement( &DMIME_refCount ); }
-static inline void DMIME_UnlockModule() { InterlockedDecrement( &DMIME_refCount ); }
+static inline void DMIME_LockModule(void) { InterlockedIncrement( &DMIME_refCount ); }
+static inline void DMIME_UnlockModule(void) { InterlockedDecrement( &DMIME_refCount ); }
/*****************************************************************************
* Misc.
diff --git a/dlls/dmscript/dmscript_private.h b/dlls/dmscript/dmscript_private.h
index ce81fb6..407380f 100644
--- a/dlls/dmscript/dmscript_private.h
+++ b/dlls/dmscript/dmscript_private.h
@@ -112,8 +112,8 @@
* Dll lifetime tracking declaration for dmscript.dll
*/
extern LONG DMSCRIPT_refCount;
-static inline void DMSCRIPT_LockModule() { InterlockedIncrement( &DMSCRIPT_refCount ); }
-static inline void DMSCRIPT_UnlockModule() { InterlockedDecrement( &DMSCRIPT_refCount ); }
+static inline void DMSCRIPT_LockModule(void) { InterlockedIncrement( &DMSCRIPT_refCount ); }
+static inline void DMSCRIPT_UnlockModule(void) { InterlockedDecrement( &DMSCRIPT_refCount ); }
/*****************************************************************************
* Misc.
diff --git a/dlls/dmstyle/dmstyle_private.h b/dlls/dmstyle/dmstyle_private.h
index 4a175b2..9c9a911 100644
--- a/dlls/dmstyle/dmstyle_private.h
+++ b/dlls/dmstyle/dmstyle_private.h
@@ -299,8 +299,8 @@
* Dll lifetime tracking declaration for dmstyle.dll
*/
extern LONG DMSTYLE_refCount;
-static inline void DMSTYLE_LockModule() { InterlockedIncrement( &DMSTYLE_refCount ); }
-static inline void DMSTYLE_UnlockModule() { InterlockedDecrement( &DMSTYLE_refCount ); }
+static inline void DMSTYLE_LockModule(void) { InterlockedIncrement( &DMSTYLE_refCount ); }
+static inline void DMSTYLE_UnlockModule(void) { InterlockedDecrement( &DMSTYLE_refCount ); }
/*****************************************************************************
* Misc.
diff --git a/dlls/dmsynth/dmsynth_private.h b/dlls/dmsynth/dmsynth_private.h
index aca1755..d0f7a60 100644
--- a/dlls/dmsynth/dmsynth_private.h
+++ b/dlls/dmsynth/dmsynth_private.h
@@ -89,8 +89,8 @@
* Dll lifetime tracking declaration for dmsynth.dll
*/
extern LONG DMSYNTH_refCount;
-static inline void DMSYNTH_LockModule() { InterlockedIncrement( &DMSYNTH_refCount ); }
-static inline void DMSYNTH_UnlockModule() { InterlockedDecrement( &DMSYNTH_refCount ); }
+static inline void DMSYNTH_LockModule(void) { InterlockedIncrement( &DMSYNTH_refCount ); }
+static inline void DMSYNTH_UnlockModule(void) { InterlockedDecrement( &DMSYNTH_refCount ); }
/*****************************************************************************
* Misc.
diff --git a/dlls/dmusic/dmusic_private.h b/dlls/dmusic/dmusic_private.h
index 56a5a92..a81e27f 100644
--- a/dlls/dmusic/dmusic_private.h
+++ b/dlls/dmusic/dmusic_private.h
@@ -286,8 +286,8 @@
* Dll lifetime tracking declaration for dmusic.dll
*/
extern LONG DMUSIC_refCount;
-static inline void DMUSIC_LockModule() { InterlockedIncrement( &DMUSIC_refCount ); }
-static inline void DMUSIC_UnlockModule() { InterlockedDecrement( &DMUSIC_refCount ); }
+static inline void DMUSIC_LockModule(void) { InterlockedIncrement( &DMUSIC_refCount ); }
+static inline void DMUSIC_UnlockModule(void) { InterlockedDecrement( &DMUSIC_refCount ); }
/*****************************************************************************
* Helper Functions
diff --git a/dlls/dsound/tests/ds3d.c b/dlls/dsound/tests/ds3d.c
index 480891b..be5f2b7 100644
--- a/dlls/dsound/tests/ds3d.c
+++ b/dlls/dsound/tests/ds3d.c
@@ -1225,7 +1225,7 @@
return 1;
}
-static void ds3d_tests()
+static void ds3d_tests(void)
{
HRESULT rc;
rc=DirectSoundEnumerateA(&dsenum_callback,NULL);
diff --git a/dlls/dsound/tests/ds3d8.c b/dlls/dsound/tests/ds3d8.c
index 00cbc73..bddb3ee 100644
--- a/dlls/dsound/tests/ds3d8.c
+++ b/dlls/dsound/tests/ds3d8.c
@@ -1118,7 +1118,7 @@
return 1;
}
-static void ds3d8_tests()
+static void ds3d8_tests(void)
{
HRESULT rc;
rc=DirectSoundEnumerateA(&dsenum_callback,NULL);
diff --git a/dlls/dsound/tests/dsound.c b/dlls/dsound/tests/dsound.c
index 0dc90e3..7431a1b 100644
--- a/dlls/dsound/tests/dsound.c
+++ b/dlls/dsound/tests/dsound.c
@@ -168,7 +168,7 @@
ok(ref==0,"IDirectSound_Release() has %d references, should have 0\n",ref);
}
-static void IDirectSound_tests()
+static void IDirectSound_tests(void)
{
HRESULT rc;
LPDIRECTSOUND dso=NULL;
@@ -928,7 +928,7 @@
return 1;
}
-static void dsound_tests()
+static void dsound_tests(void)
{
HRESULT rc;
rc=DirectSoundEnumerateA(&dsenum_callback,NULL);
diff --git a/dlls/dsound/tests/dsound8.c b/dlls/dsound/tests/dsound8.c
index e7d31c9..bb0fc56 100644
--- a/dlls/dsound/tests/dsound8.c
+++ b/dlls/dsound/tests/dsound8.c
@@ -187,7 +187,7 @@
ok(ref==0,"IDirectSound8_Release() has %d references, should have 0\n",ref);
}
-static void IDirectSound8_tests()
+static void IDirectSound8_tests(void)
{
HRESULT rc;
LPDIRECTSOUND8 dso=NULL;
@@ -790,7 +790,7 @@
return 1;
}
-static void dsound8_tests()
+static void dsound8_tests(void)
{
HRESULT rc;
rc=DirectSoundEnumerateA(&dsenum_callback,NULL);
diff --git a/dlls/dsound/tests/propset.c b/dlls/dsound/tests/propset.c
index 207b976..2fea837 100644
--- a/dlls/dsound/tests/propset.c
+++ b/dlls/dsound/tests/propset.c
@@ -178,7 +178,7 @@
return TRUE;
}
-static void propset_private_tests()
+static void propset_private_tests(void)
{
HMODULE hDsound;
HRESULT rc;
@@ -700,7 +700,7 @@
return 1;
}
-static void propset_buffer_tests()
+static void propset_buffer_tests(void)
{
HRESULT rc;
rc=DirectSoundEnumerateA(&dsenum_callback,NULL);
diff --git a/dlls/dswave/dswave_private.h b/dlls/dswave/dswave_private.h
index 2ef01a8..451df66 100644
--- a/dlls/dswave/dswave_private.h
+++ b/dlls/dswave/dswave_private.h
@@ -81,8 +81,8 @@
* Dll lifetime tracking declaration for dswave.dll
*/
extern LONG DSWAVE_refCount;
-static inline void DSWAVE_LockModule() { InterlockedIncrement( &DSWAVE_refCount ); }
-static inline void DSWAVE_UnlockModule() { InterlockedDecrement( &DSWAVE_refCount ); }
+static inline void DSWAVE_LockModule(void) { InterlockedIncrement( &DSWAVE_refCount ); }
+static inline void DSWAVE_UnlockModule(void) { InterlockedDecrement( &DSWAVE_refCount ); }
/*****************************************************************************
* Misc.
diff --git a/dlls/dxdiagn/dxdiag_private.h b/dlls/dxdiagn/dxdiag_private.h
index 1a97af2..43cc777 100644
--- a/dlls/dxdiagn/dxdiag_private.h
+++ b/dlls/dxdiagn/dxdiag_private.h
@@ -114,7 +114,7 @@
* Dll lifetime tracking declaration for dxdiagn.dll
*/
extern LONG DXDIAGN_refCount;
-static inline void DXDIAGN_LockModule() { InterlockedIncrement( &DXDIAGN_refCount ); }
-static inline void DXDIAGN_UnlockModule() { InterlockedDecrement( &DXDIAGN_refCount ); }
+static inline void DXDIAGN_LockModule(void) { InterlockedIncrement( &DXDIAGN_refCount ); }
+static inline void DXDIAGN_UnlockModule(void) { InterlockedDecrement( &DXDIAGN_refCount ); }
#endif
diff --git a/dlls/gdi/tests/brush.c b/dlls/gdi/tests/brush.c
index 50c4b9d..f4e22b6 100644
--- a/dlls/gdi/tests/brush.c
+++ b/dlls/gdi/tests/brush.c
@@ -32,7 +32,7 @@
const char *name;
} STOCK_BRUSH;
-static void test_solidbrush()
+static void test_solidbrush(void)
{
static const STOCK_BRUSH stock[] = {
{RGB(255,255,255), WHITE_BRUSH, "white"},
diff --git a/dlls/kernel/tests/environ.c b/dlls/kernel/tests/environ.c
index 40a9457..3754d69 100644
--- a/dlls/kernel/tests/environ.c
+++ b/dlls/kernel/tests/environ.c
@@ -211,7 +211,7 @@
ret, GetLastError());
}
-static void test_ExpandEnvironmentStringsA()
+static void test_ExpandEnvironmentStringsA(void)
{
char buf[256], buf1[256];
DWORD ret_size, ret_size1;
diff --git a/dlls/kernel/tests/file.c b/dlls/kernel/tests/file.c
index 57fb11d..655cb67 100644
--- a/dlls/kernel/tests/file.c
+++ b/dlls/kernel/tests/file.c
@@ -712,7 +712,7 @@
"CreateFileW on invalid VxD name returned ret=%p error=%ld\n",hFile,GetLastError());
}
-static void test_GetTempFileNameA()
+static void test_GetTempFileNameA(void)
{
UINT result;
char out[MAX_PATH];
@@ -1170,14 +1170,14 @@
DeleteFileA( filename );
}
-static char get_windows_drive()
+static char get_windows_drive(void)
{
char windowsdir[MAX_PATH];
GetWindowsDirectory(windowsdir, sizeof(windowsdir));
return windowsdir[0];
}
-static void test_FindFirstFileA()
+static void test_FindFirstFileA(void)
{
HANDLE handle;
WIN32_FIND_DATAA search_results;
@@ -1199,7 +1199,7 @@
ok ( FindClose(handle) == TRUE, "Failed to close handle\n");
}
-static void test_FindNextFileA()
+static void test_FindNextFileA(void)
{
HANDLE handle;
WIN32_FIND_DATAA search_results;
@@ -1232,7 +1232,7 @@
return 0;
}
-static void test_MapFile()
+static void test_MapFile(void)
{
HANDLE handle;
HANDLE hmap;
diff --git a/dlls/kernel/tests/locale.c b/dlls/kernel/tests/locale.c
index 72a59d1..cbf7462 100644
--- a/dlls/kernel/tests/locale.c
+++ b/dlls/kernel/tests/locale.c
@@ -135,7 +135,7 @@
#define NUO LOCALE_NOUSEROVERRIDE
-static void test_GetLocaleInfoA()
+static void test_GetLocaleInfoA(void)
{
int ret;
LCID lcid = MAKELCID(MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_US), SORT_DEFAULT);
@@ -161,7 +161,7 @@
ok(!strcmp(buffer, "Monday"), "Expected 'Monday', got '%s'\n", buffer);
}
-static void test_GetTimeFormatA()
+static void test_GetTimeFormatA(void)
{
int ret;
SYSTEMTIME curtime;
@@ -314,7 +314,7 @@
EXPECT_VALID; EXPECT_LENA; EXPECT_EQA;
}
-static void test_GetDateFormatA()
+static void test_GetDateFormatA(void)
{
int ret;
SYSTEMTIME curtime;
@@ -375,7 +375,7 @@
EXPECT_FLAGS; EXPECT_LEN(0); EXPECT_EQA;
}
-static void test_GetDateFormatW()
+static void test_GetDateFormatW(void)
{
int ret;
SYSTEMTIME curtime;
@@ -416,7 +416,7 @@
#define CY_POS_LEFT_SPACE 2
#define CY_POS_RIGHT_SPACE 3
-static void test_GetCurrencyFormatA()
+static void test_GetCurrencyFormatA(void)
{
static char szDot[] = { '.', '\0' };
static char szComma[] = { ',', '\0' };
@@ -614,7 +614,7 @@
#define NEG_RIGHT 3 /* "1.1-" */
#define NEG_RIGHT_SPACE 4 /* "1.1 -" */
-static void test_GetNumberFormatA()
+static void test_GetNumberFormatA(void)
{
static char szDot[] = { '.', '\0' };
static char szComma[] = { ',', '\0' };
@@ -759,7 +759,7 @@
return FALSE;
}
-static void test_EnumTimeFormats()
+static void test_EnumTimeFormats(void)
{
int ret;
LCID lcid = MAKELCID(MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_US), SORT_DEFAULT);
@@ -769,7 +769,7 @@
ok (ret == 1 && !strcmp(GlobalBuffer,"h:mm:ss tt"), "Expected %d '%s'\n", ret, GlobalBuffer);
}
-static void test_CompareStringA()
+static void test_CompareStringA(void)
{
int ret;
LCID lcid = MAKELCID(MAKELANGID(LANG_FRENCH, SUBLANG_DEFAULT), SORT_DEFAULT);
diff --git a/dlls/kernel/tests/mailslot.c b/dlls/kernel/tests/mailslot.c
index 8f80875..b5f99ad 100644
--- a/dlls/kernel/tests/mailslot.c
+++ b/dlls/kernel/tests/mailslot.c
@@ -29,7 +29,7 @@
static const char szmspath[] = "\\\\.\\mailslot\\wine_mailslot_test";
-static int mailslot_test()
+static int mailslot_test(void)
{
HANDLE hSlot, hSlot2, hWriter, hWriter2;
unsigned char buffer[16];
diff --git a/dlls/mscms/tests/profile.c b/dlls/mscms/tests/profile.c
index 1d53bc8..bc37376 100644
--- a/dlls/mscms/tests/profile.c
+++ b/dlls/mscms/tests/profile.c
@@ -87,7 +87,7 @@
lstrcpyW( name, &path[i] );
}
-static void test_GetColorDirectoryA()
+static void test_GetColorDirectoryA(void)
{
BOOL ret;
DWORD size;
@@ -121,7 +121,7 @@
ok( ret && size > 0, "GetColorDirectoryA() failed (%ld)\n", GetLastError() );
}
-static void test_GetColorDirectoryW()
+static void test_GetColorDirectoryW(void)
{
BOOL ret;
DWORD size;
@@ -159,7 +159,7 @@
ok( ret && size > 0, "GetColorDirectoryW() failed (%ld)\n", GetLastError() );
}
-static void test_GetColorProfileElement()
+static void test_GetColorProfileElement(void)
{
if (standardprofile)
{
@@ -209,7 +209,7 @@
}
}
-static void test_GetColorProfileElementTag()
+static void test_GetColorProfileElementTag(void)
{
if (standardprofile)
{
@@ -250,7 +250,7 @@
}
}
-static void test_GetColorProfileFromHandle()
+static void test_GetColorProfileFromHandle(void)
{
if (testprofile)
{
@@ -308,7 +308,7 @@
}
}
-static void test_GetColorProfileHeader()
+static void test_GetColorProfileHeader(void)
{
if (testprofile)
{
@@ -346,7 +346,7 @@
}
}
-static void test_GetCountColorProfileElements()
+static void test_GetCountColorProfileElements(void)
{
if (standardprofile)
{
@@ -382,7 +382,7 @@
}
}
-static void test_GetStandardColorSpaceProfileA()
+static void test_GetStandardColorSpaceProfileA(void)
{
BOOL ret;
DWORD size;
@@ -431,7 +431,7 @@
}
}
-static void test_GetStandardColorSpaceProfileW()
+static void test_GetStandardColorSpaceProfileW(void)
{
BOOL ret;
DWORD size;
@@ -480,7 +480,7 @@
}
}
-static void test_InstallColorProfileA()
+static void test_InstallColorProfileA(void)
{
BOOL ret;
@@ -531,7 +531,7 @@
}
}
-static void test_InstallColorProfileW()
+static void test_InstallColorProfileW(void)
{
BOOL ret;
@@ -582,7 +582,7 @@
}
}
-static void test_IsColorProfileTagPresent()
+static void test_IsColorProfileTagPresent(void)
{
if (standardprofile)
{
@@ -622,7 +622,7 @@
}
}
-static void test_OpenColorProfileA()
+static void test_OpenColorProfileA(void)
{
PROFILE profile;
HPROFILE handle;
@@ -672,7 +672,7 @@
}
}
-static void test_OpenColorProfileW()
+static void test_OpenColorProfileW(void)
{
PROFILE profile;
HPROFILE handle;
@@ -722,7 +722,7 @@
}
}
-static void test_SetColorProfileElement()
+static void test_SetColorProfileElement(void)
{
if (testprofile)
{
@@ -780,7 +780,7 @@
}
}
-static void test_SetColorProfileHeader()
+static void test_SetColorProfileHeader(void)
{
if (testprofile)
{
@@ -851,7 +851,7 @@
}
}
-static void test_UninstallColorProfileA()
+static void test_UninstallColorProfileA(void)
{
BOOL ret;
@@ -893,7 +893,7 @@
}
}
-static void test_UninstallColorProfileW()
+static void test_UninstallColorProfileW(void)
{
BOOL ret;
diff --git a/dlls/msi/action.c b/dlls/msi/action.c
index 6b45fa0..6ea7c0a 100644
--- a/dlls/msi/action.c
+++ b/dlls/msi/action.c
@@ -2530,7 +2530,7 @@
return NULL;
}
-static HKEY openSharedDLLsKey()
+static HKEY openSharedDLLsKey(void)
{
HKEY hkey=0;
static const WCHAR path[] =
diff --git a/dlls/msi/tests/db.c b/dlls/msi/tests/db.c
index 35f52fc..b22bdd6 100644
--- a/dlls/msi/tests/db.c
+++ b/dlls/msi/tests/db.c
@@ -222,7 +222,7 @@
return r;
}
-static void test_msibadqueries()
+static void test_msibadqueries(void)
{
const char *msifile = "winetest.msi";
MSIHANDLE hdb = 0;
diff --git a/dlls/msvcrt/tests/headers.c b/dlls/msvcrt/tests/headers.c
index 8f70f7f..1d14262 100644
--- a/dlls/msvcrt/tests/headers.c
+++ b/dlls/msvcrt/tests/headers.c
@@ -73,7 +73,7 @@
#define CHECK_DEF(n,d1,d2) ok(d1 == d2, "Defines (MSVCRT_)%s are different: '%d' vs. '%d'\n", n, d1, d2)
/************* Checking types ***************/
-void test_types()
+void test_types(void)
{
CHECK_TYPE(wchar_t);
CHECK_TYPE(wint_t);
@@ -97,7 +97,7 @@
}
/************* Checking structs ***************/
-void test_structs()
+void test_structs(void)
{
CHECK_STRUCT(tm);
CHECK_FIELD(tm, tm_sec);
@@ -294,7 +294,7 @@
}
/************* Checking defines ***************/
-void test_defines()
+void test_defines(void)
{
CHECK_DEF("WEOF", WEOF, MSVCRT_WEOF);
CHECK_DEF("EOF", EOF, MSVCRT_EOF);
diff --git a/dlls/ntdll/tests/large_int.c b/dlls/ntdll/tests/large_int.c
index a9620cc..006fda4 100644
--- a/dlls/ntdll/tests/large_int.c
+++ b/dlls/ntdll/tests/large_int.c
@@ -35,7 +35,7 @@
static NTSTATUS (WINAPI *pRtlUnicodeStringToAnsiString)(STRING *, const UNICODE_STRING *, BOOLEAN);
-static void InitFunctionPtrs()
+static void InitFunctionPtrs(void)
{
hntdll = LoadLibraryA("ntdll.dll");
ok(hntdll != 0, "LoadLibrary failed\n");
diff --git a/dlls/ntdll/tests/reg.c b/dlls/ntdll/tests/reg.c
index 9d665a2..29cca6f 100644
--- a/dlls/ntdll/tests/reg.c
+++ b/dlls/ntdll/tests/reg.c
@@ -341,7 +341,7 @@
ok(status == STATUS_SUCCESS, "RtlCheckRegistryKey with RTL_REGISTRY_ABSOLUTE and RTL_REGISTRY_OPTIONAL: 0x%08lx\n", status);
}
-static void test_NtDeleteKey()
+static void test_NtDeleteKey(void)
{
NTSTATUS status;
HANDLE hkey;
diff --git a/dlls/ole32/compobj.c b/dlls/ole32/compobj.c
index 0b3b14a..cf58207 100644
--- a/dlls/ole32/compobj.c
+++ b/dlls/ole32/compobj.c
@@ -197,7 +197,7 @@
UnregisterClassW(wszAptWinClass, OLE32_hInstance);
}
-static void COM_TlsDestroy()
+static void COM_TlsDestroy(void)
{
struct oletls *info = NtCurrentTeb()->ReservedForOle;
if (info)
diff --git a/dlls/ole32/ifs.c b/dlls/ole32/ifs.c
index c2ba177..f0e940b 100644
--- a/dlls/ole32/ifs.c
+++ b/dlls/ole32/ifs.c
@@ -501,7 +501,7 @@
TRACE ("(%p)->()\n", This);
}
-static void MallocSpyDumpLeaks() {
+static void MallocSpyDumpLeaks(void) {
TRACE("leaks: %lu\n", Malloc32.SpyedAllocationsLeft);
}
diff --git a/dlls/ole32/tests/marshal.c b/dlls/ole32/tests/marshal.c
index d154300..475943c 100644
--- a/dlls/ole32/tests/marshal.c
+++ b/dlls/ole32/tests/marshal.c
@@ -37,7 +37,7 @@
#define ok_no_locks() ok(cLocks == 0, "Number of locks should be 0, but actually is %ld\n", cLocks)
#define ok_ole_success(hr, func) ok(hr == S_OK, #func " failed with error 0x%08lx\n", hr)
-static void test_CoGetPSClsid()
+static void test_CoGetPSClsid(void)
{
HRESULT hr;
CLSID clsid;
@@ -60,12 +60,12 @@
static const LARGE_INTEGER ullZero;
static LONG cLocks;
-static void LockModule()
+static void LockModule(void)
{
InterlockedIncrement(&cLocks);
}
-static void UnlockModule()
+static void UnlockModule(void)
{
InterlockedDecrement(&cLocks);
}
@@ -273,7 +273,7 @@
/* tests failure case of interface not having a marshaler specified in the
* registry */
-static void test_no_marshaler()
+static void test_no_marshaler(void)
{
IStream *pStream;
HRESULT hr;
@@ -293,7 +293,7 @@
}
/* tests normal marshal and then release without unmarshaling */
-static void test_normal_marshal_and_release()
+static void test_normal_marshal_and_release(void)
{
HRESULT hr;
IStream *pStream = NULL;
@@ -316,7 +316,7 @@
}
/* tests success case of a same-thread marshal and unmarshal */
-static void test_normal_marshal_and_unmarshal()
+static void test_normal_marshal_and_unmarshal(void)
{
HRESULT hr;
IStream *pStream = NULL;
@@ -344,7 +344,7 @@
}
/* tests failure case of unmarshaling a freed object */
-static void test_marshal_and_unmarshal_invalid()
+static void test_marshal_and_unmarshal_invalid(void)
{
HRESULT hr;
IStream *pStream = NULL;
@@ -387,7 +387,7 @@
}
/* tests success case of an interthread marshal */
-static void test_interthread_marshal_and_unmarshal()
+static void test_interthread_marshal_and_unmarshal(void)
{
HRESULT hr;
IStream *pStream = NULL;
@@ -418,7 +418,7 @@
}
/* tests that stubs are released when the containing apartment is destroyed */
-static void test_marshal_stub_apartment_shutdown()
+static void test_marshal_stub_apartment_shutdown(void)
{
HRESULT hr;
IStream *pStream = NULL;
@@ -451,7 +451,7 @@
}
/* tests that proxies are released when the containing apartment is destroyed */
-static void test_marshal_proxy_apartment_shutdown()
+static void test_marshal_proxy_apartment_shutdown(void)
{
HRESULT hr;
IStream *pStream = NULL;
@@ -488,7 +488,7 @@
}
/* tests that proxies are released when the containing mta apartment is destroyed */
-static void test_marshal_proxy_mta_apartment_shutdown()
+static void test_marshal_proxy_mta_apartment_shutdown(void)
{
HRESULT hr;
IStream *pStream = NULL;
@@ -555,7 +555,7 @@
}
/* tests apartment that an apartment is released if the owning thread exits */
-static void test_no_couninitialize()
+static void test_no_couninitialize(void)
{
HRESULT hr;
IStream *pStream = NULL;
@@ -600,7 +600,7 @@
}
/* tests success case of a same-thread table-weak marshal, unmarshal, unmarshal */
-static void test_tableweak_marshal_and_unmarshal_twice()
+static void test_tableweak_marshal_and_unmarshal_twice(void)
{
HRESULT hr;
IStream *pStream = NULL;
@@ -641,7 +641,7 @@
}
/* tests releasing after unmarshaling one object */
-static void test_tableweak_marshal_releasedata1()
+static void test_tableweak_marshal_releasedata1(void)
{
HRESULT hr;
IStream *pStream = NULL;
@@ -691,7 +691,7 @@
}
/* tests releasing after unmarshaling one object */
-static void test_tableweak_marshal_releasedata2()
+static void test_tableweak_marshal_releasedata2(void)
{
HRESULT hr;
IStream *pStream = NULL;
@@ -730,7 +730,7 @@
}
/* tests success case of a same-thread table-strong marshal, unmarshal, unmarshal */
-static void test_tablestrong_marshal_and_unmarshal_twice()
+static void test_tablestrong_marshal_and_unmarshal_twice(void)
{
HRESULT hr;
IStream *pStream = NULL;
@@ -779,7 +779,7 @@
}
/* tests CoLockObjectExternal */
-static void test_lock_object_external()
+static void test_lock_object_external(void)
{
HRESULT hr;
IStream *pStream = NULL;
@@ -808,7 +808,7 @@
}
/* tests disconnecting stubs */
-static void test_disconnect_stub()
+static void test_disconnect_stub(void)
{
HRESULT hr;
IStream *pStream = NULL;
@@ -837,7 +837,7 @@
}
/* tests failure case of a same-thread marshal and unmarshal twice */
-static void test_normal_marshal_and_unmarshal_twice()
+static void test_normal_marshal_and_unmarshal_twice(void)
{
HRESULT hr;
IStream *pStream = NULL;
@@ -874,7 +874,7 @@
}
/* tests success case of marshaling and unmarshaling an HRESULT */
-static void test_hresult_marshaling()
+static void test_hresult_marshaling(void)
{
HRESULT hr;
HRESULT hr_marshaled = 0;
@@ -927,7 +927,7 @@
}
/* tests failure case of a using a proxy in the wrong apartment */
-static void test_proxy_used_in_wrong_thread()
+static void test_proxy_used_in_wrong_thread(void)
{
HRESULT hr;
IStream *pStream = NULL;
@@ -1047,7 +1047,7 @@
static IMessageFilter MessageFilter = { &MessageFilter_Vtbl };
-static void test_message_filter()
+static void test_message_filter(void)
{
HRESULT hr;
IStream *pStream = NULL;
@@ -1094,7 +1094,7 @@
}
/* test failure case of trying to unmarshal from bad stream */
-static void test_bad_marshal_stream()
+static void test_bad_marshal_stream(void)
{
HRESULT hr;
IStream *pStream = NULL;
@@ -1119,7 +1119,7 @@
}
/* tests that proxies implement certain interfaces */
-static void test_proxy_interfaces()
+static void test_proxy_interfaces(void)
{
HRESULT hr;
IStream *pStream = NULL;
@@ -1273,7 +1273,7 @@
}
}
-static void test_message_reentrancy()
+static void test_message_reentrancy(void)
{
WNDCLASS wndclass;
MSG msg;
@@ -1540,7 +1540,7 @@
}
#endif
-static void test_ROT()
+static void test_ROT(void)
{
static const WCHAR wszFileName[] = {'B','E','2','0','E','2','F','5','-',
'1','9','0','3','-','4','A','A','E','-','B','1','A','F','-',
diff --git a/dlls/ole32/tests/propvariant.c b/dlls/ole32/tests/propvariant.c
index 0c5aa61..aa630c1 100644
--- a/dlls/ole32/tests/propvariant.c
+++ b/dlls/ole32/tests/propvariant.c
@@ -126,7 +126,7 @@
"VT_STREAMED_OBJECT","VT_STORED_OBJECT","VT_BLOB_OBJECT","VT_CF","VT_CLSID"
};
-static void test_validtypes()
+static void test_validtypes(void)
{
PROPVARIANT propvar;
HRESULT hr;
@@ -197,7 +197,7 @@
}
}
-static void test_copy()
+static void test_copy(void)
{
static const char szTestString[] = "Test String";
static const WCHAR wszTestString[] = {'T','e','s','t',' ','S','t','r','i','n','g',0};
diff --git a/dlls/oleaut32/tests/safearray.c b/dlls/oleaut32/tests/safearray.c
index fe7a35a..68a6520 100644
--- a/dlls/oleaut32/tests/safearray.c
+++ b/dlls/oleaut32/tests/safearray.c
@@ -85,7 +85,7 @@
static const IRecordInfoVtbl IRecordInfoImpl_VTable;
-static IRecordInfoImpl *IRecordInfoImpl_Construct()
+static IRecordInfoImpl *IRecordInfoImpl_Construct(void)
{
IRecordInfoImpl *rec;
diff --git a/dlls/qcap/qcap_main.c b/dlls/qcap/qcap_main.c
index ca641a3..3e9b5df 100644
--- a/dlls/qcap/qcap_main.c
+++ b/dlls/qcap/qcap_main.c
@@ -171,7 +171,7 @@
/***********************************************************************
* DllRegisterServer (QCAP.@)
*/
-HRESULT WINAPI QCAP_DllRegisterServer()
+HRESULT WINAPI QCAP_DllRegisterServer(void)
{
TRACE("()\n");
diff --git a/dlls/quartz/tests/filtergraph.c b/dlls/quartz/tests/filtergraph.c
index 63d8490..52d24a8 100644
--- a/dlls/quartz/tests/filtergraph.c
+++ b/dlls/quartz/tests/filtergraph.c
@@ -31,13 +31,13 @@
IGraphBuilder* pgraph;
-static int createfiltergraph()
+static int createfiltergraph(void)
{
return S_OK == CoCreateInstance(
&CLSID_FilterGraph, NULL, CLSCTX_INPROC_SERVER, &IID_IGraphBuilder, (LPVOID*)&pgraph);
}
-static void renderfile()
+static void renderfile(void)
{
HRESULT hr;
@@ -45,7 +45,7 @@
ok(hr==S_OK, "RenderFile returned: %lx\n", hr);
}
-static void rungraph()
+static void rungraph(void)
{
HRESULT hr;
IMediaControl* pmc;
@@ -77,7 +77,7 @@
ok(hr==1, "Releasing mediacontrol returned: %lx\n", hr);
}
-static void releasefiltergraph()
+static void releasefiltergraph(void)
{
HRESULT hr;
diff --git a/dlls/shdocvw/shdocvw.h b/dlls/shdocvw/shdocvw.h
index 13a2eb1..cde5801 100644
--- a/dlls/shdocvw/shdocvw.h
+++ b/dlls/shdocvw/shdocvw.h
@@ -165,7 +165,7 @@
* Dll lifetime tracking declaration for shdocvw.dll
*/
extern LONG SHDOCVW_refCount;
-static inline void SHDOCVW_LockModule() { InterlockedIncrement( &SHDOCVW_refCount ); }
-static inline void SHDOCVW_UnlockModule() { InterlockedDecrement( &SHDOCVW_refCount ); }
+static inline void SHDOCVW_LockModule(void) { InterlockedIncrement( &SHDOCVW_refCount ); }
+static inline void SHDOCVW_UnlockModule(void) { InterlockedDecrement( &SHDOCVW_refCount ); }
#endif /* __WINE_SHDOCVW_H */
diff --git a/dlls/shdocvw/shdocvw_main.c b/dlls/shdocvw/shdocvw_main.c
index 927a9fa..b7fe66b 100644
--- a/dlls/shdocvw/shdocvw_main.c
+++ b/dlls/shdocvw/shdocvw_main.c
@@ -388,7 +388,7 @@
}
}
-static BOOL SHDOCVW_TryDownloadMozillaControl()
+static BOOL SHDOCVW_TryDownloadMozillaControl(void)
{
DWORD r;
WCHAR buf[0x100];
@@ -414,7 +414,7 @@
return TRUE;
}
-static BOOL SHDOCVW_TryLoadMozillaControl()
+static BOOL SHDOCVW_TryLoadMozillaControl(void)
{
WCHAR szPath[MAX_PATH];
BOOL bTried = FALSE;
diff --git a/dlls/shell32/tests/shelllink.c b/dlls/shell32/tests/shelllink.c
index 8817170..960922d 100644
--- a/dlls/shell32/tests/shelllink.c
+++ b/dlls/shell32/tests/shelllink.c
@@ -83,7 +83,7 @@
* Test manipulation of an IShellLink's properties.
*/
-static void test_get_set()
+static void test_get_set(void)
{
HRESULT r;
IShellLinkA *sl;
@@ -459,7 +459,7 @@
IShellLinkA_Release(sl);
}
-static void test_load_save()
+static void test_load_save(void)
{
lnk_desc_t desc;
char mypath[MAX_PATH];
diff --git a/dlls/shlwapi/tests/clist.c b/dlls/shlwapi/tests/clist.c
index 2678578..4ff732b 100644
--- a/dlls/shlwapi/tests/clist.c
+++ b/dlls/shlwapi/tests/clist.c
@@ -212,7 +212,7 @@
static HRESULT (WINAPI *pSHLWAPI_214)(_IDummyStream*,ULARGE_INTEGER*);
-static void InitFunctionPtrs()
+static void InitFunctionPtrs(void)
{
SHLWAPI_hshlwapi = LoadLibraryA("shlwapi.dll");
ok(SHLWAPI_hshlwapi != 0, "LoadLibrary failed\n");
diff --git a/dlls/shlwapi/tests/shreg.c b/dlls/shlwapi/tests/shreg.c
index 35cc00f..7146d17 100644
--- a/dlls/shlwapi/tests/shreg.c
+++ b/dlls/shlwapi/tests/shreg.c
@@ -321,7 +321,7 @@
RegCloseKey(hKeyDst);
}
-static void test_SHDeleteKey()
+static void test_SHDeleteKey(void)
{
HKEY hKeyTest, hKeyS;
DWORD dwRet;
diff --git a/dlls/user/combo.c b/dlls/user/combo.c
index 108ce99..4424306 100644
--- a/dlls/user/combo.c
+++ b/dlls/user/combo.c
@@ -112,7 +112,7 @@
*
* Load combo button bitmap.
*/
-static BOOL COMBO_Init()
+static BOOL COMBO_Init(void)
{
HDC hDC;
diff --git a/dlls/user/tests/edit.c b/dlls/user/tests/edit.c
index 71b6216..746e01b 100644
--- a/dlls/user/tests/edit.c
+++ b/dlls/user/tests/edit.c
@@ -472,7 +472,7 @@
DestroyWindow (hwndMain);
}
-static void ET2_check_change() {
+static void ET2_check_change(void) {
char szLocalString[MAXLEN];
/* This EN_UPDATE handler changes any 'foo' to 'bar'. */
GetWindowText(hwndET2, szLocalString, MAXLEN);
diff --git a/dlls/wineps/afm.c b/dlls/wineps/afm.c
index fbc0a33..56e513d 100644
--- a/dlls/wineps/afm.c
+++ b/dlls/wineps/afm.c
@@ -248,7 +248,7 @@
*
*/
-static BOOL AddBuiltinAFMs()
+static BOOL AddBuiltinAFMs(void)
{
const AFM *const *afm = PSDRV_BuiltinAFMs;
diff --git a/dlls/winsock/tests/protocol.c b/dlls/winsock/tests/protocol.c
index ebc9bd7..da3826f 100644
--- a/dlls/winsock/tests/protocol.c
+++ b/dlls/winsock/tests/protocol.c
@@ -27,7 +27,7 @@
#include "wine/test.h"
-static void test_WSAEnumProtocolsA()
+static void test_WSAEnumProtocolsA(void)
{
INT ret;
DWORD len = 0;
@@ -62,7 +62,7 @@
}
}
-static void test_WSAEnumProtocolsW()
+static void test_WSAEnumProtocolsW(void)
{
INT ret;
DWORD len = 0;
diff --git a/dlls/winspool/info.c b/dlls/winspool/info.c
index 490a00a..f72d2bb 100644
--- a/dlls/winspool/info.c
+++ b/dlls/winspool/info.c
@@ -3179,7 +3179,7 @@
return TRUE;
}
-static DWORD WINSPOOL_CountSerialPorts()
+static DWORD WINSPOOL_CountSerialPorts(void)
{
CHAR name[6];
DWORD n = 0, i;
diff --git a/dlls/wintab32/context.c b/dlls/wintab32/context.c
index d0731b4..a873a5f 100644
--- a/dlls/wintab32/context.c
+++ b/dlls/wintab32/context.c
@@ -120,7 +120,7 @@
return NULL;
}
-static void LoadTablet()
+static void LoadTablet(void)
{
TRACE("Initilizing the tablet to hwnd %p\n",hwndDefault);
gLoaded= TRUE;
diff --git a/programs/notepad/dialog.h b/programs/notepad/dialog.h
index 98f4d15..850be24 100644
--- a/programs/notepad/dialog.h
+++ b/programs/notepad/dialog.h
@@ -51,7 +51,7 @@
VOID DIALOG_TimeDate(VOID);
/* utility functions */
-VOID ShowLastError();
+VOID ShowLastError(void);
BOOL FileExists(LPCWSTR szFilename);
BOOL DoCloseFile(void);
void DoOpenFile(LPCWSTR szFileName);
diff --git a/programs/progman/grpfile.c b/programs/progman/grpfile.c
index d825596..d4c5b88 100644
--- a/programs/progman/grpfile.c
+++ b/programs/progman/grpfile.c
@@ -451,7 +451,7 @@
* GRPFILE_InitChecksum
*/
-static void GRPFILE_InitChecksum()
+static void GRPFILE_InitChecksum(void)
{
GRPFILE_checksum = 0;
GRPFILE_checksum_half_word = 0;
@@ -462,7 +462,7 @@
* GRPFILE_GetChecksum
*/
-static UINT16 GRPFILE_GetChecksum()
+static UINT16 GRPFILE_GetChecksum(void)
{
return GRPFILE_checksum;
}
diff --git a/tools/winegcc/winegcc.c b/tools/winegcc/winegcc.c
index 02ebcf8..5aea2cf 100644
--- a/tools/winegcc/winegcc.c
+++ b/tools/winegcc/winegcc.c
@@ -163,7 +163,7 @@
strarray* files;
};
-static void clean_temp_files()
+static void clean_temp_files(void)
{
int i;