From ac6f562b5249511cdb4a9be0d6a7ce088ed13b54 Mon Sep 17 00:00:00 2001 From: Stefan Huehner Date: Mon, 20 Jun 2005 14:18:03 +0000 Subject: [PATCH] Fix more -Wstrict-prototypes warnings. --- dlls/advapi32/tests/crypt.c | 6 ++-- dlls/advapi32/tests/crypt_lmhash.c | 2 +- dlls/advapi32/tests/registry.c | 16 ++++----- dlls/advpack/tests/advpack.c | 4 +-- dlls/comctl32/listview.c | 2 +- dlls/comctl32/tests/imagelist.c | 2 +- dlls/ddraw/tests/d3d.c | 6 ++-- dlls/ddraw/tests/ddrawmodes.c | 16 ++++----- dlls/ddraw/tests/dsurface.c | 6 ++-- dlls/dinput/tests/joystick.c | 2 +- dlls/dinput/tests/keyboard.c | 2 +- dlls/dmband/dmband_private.h | 4 +-- dlls/dmcompos/dmcompos_private.h | 4 +-- dlls/dmime/dmime_private.h | 4 +-- dlls/dmscript/dmscript_private.h | 4 +-- dlls/dmstyle/dmstyle_private.h | 4 +-- dlls/dmsynth/dmsynth_private.h | 4 +-- dlls/dmusic/dmusic_private.h | 4 +-- dlls/dsound/tests/ds3d.c | 2 +- dlls/dsound/tests/ds3d8.c | 2 +- dlls/dsound/tests/dsound.c | 4 +-- dlls/dsound/tests/dsound8.c | 4 +-- dlls/dsound/tests/propset.c | 4 +-- dlls/dswave/dswave_private.h | 4 +-- dlls/dxdiagn/dxdiag_private.h | 4 +-- dlls/gdi/tests/brush.c | 2 +- dlls/kernel/tests/environ.c | 2 +- dlls/kernel/tests/file.c | 10 +++--- dlls/kernel/tests/locale.c | 16 ++++----- dlls/kernel/tests/mailslot.c | 2 +- dlls/mscms/tests/profile.c | 36 ++++++++++----------- dlls/msi/action.c | 2 +- dlls/msi/tests/db.c | 2 +- dlls/msvcrt/tests/headers.c | 6 ++-- dlls/ntdll/tests/large_int.c | 2 +- dlls/ntdll/tests/reg.c | 2 +- dlls/ole32/compobj.c | 2 +- dlls/ole32/ifs.c | 2 +- dlls/ole32/tests/marshal.c | 52 +++++++++++++++--------------- dlls/ole32/tests/propvariant.c | 4 +-- dlls/oleaut32/tests/safearray.c | 2 +- dlls/qcap/qcap_main.c | 2 +- dlls/quartz/tests/filtergraph.c | 8 ++--- dlls/shdocvw/shdocvw.h | 4 +-- dlls/shdocvw/shdocvw_main.c | 4 +-- dlls/shell32/tests/shelllink.c | 4 +-- dlls/shlwapi/tests/clist.c | 2 +- dlls/shlwapi/tests/shreg.c | 2 +- dlls/user/combo.c | 2 +- dlls/user/tests/edit.c | 2 +- dlls/wineps/afm.c | 2 +- dlls/winsock/tests/protocol.c | 4 +-- dlls/winspool/info.c | 2 +- dlls/wintab32/context.c | 2 +- programs/notepad/dialog.h | 2 +- programs/progman/grpfile.c | 4 +-- tools/winegcc/winegcc.c | 2 +- 57 files changed, 154 insertions(+), 154 deletions(-) diff --git a/dlls/advapi32/tests/crypt.c b/dlls/advapi32/tests/crypt.c index 2ccb4743d99..1bb540ee20d 100644 --- a/dlls/advapi32/tests/crypt.c +++ b/dlls/advapi32/tests/crypt.c @@ -494,7 +494,7 @@ static BOOL FindProvTypesRegVals(DWORD dwIndex, DWORD *pdwProvType, LPSTR *pszTy return TRUE; } -static void test_enum_provider_types() +static void test_enum_provider_types(void) { /* expected values */ DWORD dwProvType; @@ -634,7 +634,7 @@ static BOOL FindDfltProvRegVals(DWORD dwProvType, DWORD dwFlags, LPSTR *pszProvN 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 @@ static void test_get_default_provider() 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 ff352c454de..5a17f3d358b 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 04037722161..c32e419345f 100644 --- a/dlls/advapi32/tests/registry.c +++ b/dlls/advapi32/tests/registry.c @@ -243,7 +243,7 @@ static void test_enum_value(void) 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 @@ static void test_query_value_ex() 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 @@ static void test_reg_open_key() 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 @@ static void test_reg_create_key() 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 @@ static void test_reg_close_key() "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 @@ static void test_reg_delete_key() "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 @@ static void test_reg_save_key() 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 @@ static void test_reg_load_key() 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 854eeafb60a..c1b5ec764f7 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 @@ static void version_test() 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 5e6f6c7ea3b..ec388565c36 100644 --- a/dlls/comctl32/listview.c +++ b/dlls/comctl32/listview.c @@ -549,7 +549,7 @@ static inline LPCSTR debugtext_tn(LPCWSTR text, BOOL isW, INT n) 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 359d37028d1..122007a6e64 100644 --- a/dlls/comctl32/tests/imagelist.c +++ b/dlls/comctl32/tests/imagelist.c @@ -469,7 +469,7 @@ static BOOL DoTest3(void) 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 d9a313e244b..ba3bf234eb8 100644 --- a/dlls/ddraw/tests/d3d.c +++ b/dlls/ddraw/tests/d3d.c @@ -41,7 +41,7 @@ static void init_function_pointers(void) } -static void CreateDirect3D() +static void CreateDirect3D(void) { HRESULT rc; DDSURFACEDESC2 ddsd; @@ -70,7 +70,7 @@ static void CreateDirect3D() 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 ReleaseDirect3D() } } -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 c625d165cc0..ae88cce2238 100644 --- a/dlls/ddraw/tests/ddrawmodes.c +++ b/dlls/ddraw/tests/ddrawmodes.c @@ -31,7 +31,7 @@ static int modes_cnt; static int modes_size; static LPDDSURFACEDESC modes; -static void createdirectdraw() +static void createdirectdraw(void) { HRESULT rc; @@ -64,7 +64,7 @@ static void createdirectdraw() } -static void releasedirectdraw() +static void releasedirectdraw(void) { if( lpDD != NULL ) { @@ -83,7 +83,7 @@ static void adddisplaymode(LPDDSURFACEDESC lpddsd) modes[modes_cnt++] = *lpddsd; } -static void flushdisplaymodes() +static void flushdisplaymodes(void) { free(modes); modes = 0; @@ -100,7 +100,7 @@ HRESULT WINAPI enummodescallback(LPDDSURFACEDESC lpddsd, LPVOID lpContext) return DDENUMRET_OK; } -void enumdisplaymodes() +void enumdisplaymodes(void) { DDSURFACEDESC ddsd; HRESULT rc; @@ -138,7 +138,7 @@ static void setdisplaymode(int i) } } -static void createsurface() +static void createsurface(void) { DDSURFACEDESC ddsd; DDSCAPS ddscaps; @@ -157,7 +157,7 @@ static void createsurface() 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 destroysurface() } } -static void testsurface() +static void testsurface(void) { const char* testMsg = "ddraw device context test"; HDC hdc; @@ -197,7 +197,7 @@ static void testsurface() } } -static void testdisplaymodes() +static void testdisplaymodes(void) { int i; diff --git a/dlls/ddraw/tests/dsurface.c b/dlls/ddraw/tests/dsurface.c index 480355a15d1..2b608e94487 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 CreateDirectDraw() } -static void ReleaseDirectDraw() +static void ReleaseDirectDraw(void) { if( lpDD != NULL ) { @@ -45,7 +45,7 @@ static void ReleaseDirectDraw() } } -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 fe9333d97da..6e776cca4d7 100644 --- a/dlls/dinput/tests/joystick.c +++ b/dlls/dinput/tests/joystick.c @@ -69,7 +69,7 @@ static const DIDATAFORMAT c_dfDIJoystickTest = { (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 f88254b5135..3d51d2db684 100644 --- a/dlls/dinput/tests/keyboard.c +++ b/dlls/dinput/tests/keyboard.c @@ -67,7 +67,7 @@ const char * get_file_version(const char * file_name) 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 f32e783670c..e14f1b135b5 100644 --- a/dlls/dmband/dmband_private.h +++ b/dlls/dmband/dmband_private.h @@ -138,8 +138,8 @@ extern ULONG WINAPI IDirectMusicBandTrack_IPersistStream_AddRef (LPPERSISTSTRE * 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 d3155f8ad13..52a70bc8bf2 100644 --- a/dlls/dmcompos/dmcompos_private.h +++ b/dlls/dmcompos/dmcompos_private.h @@ -144,8 +144,8 @@ extern ULONG WINAPI IDirectMusicSignPostTrack_IPersistStream_AddRef (LPPERSIST * 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 2374af24a94..2107688f11f 100644 --- a/dlls/dmime/dmime_private.h +++ b/dlls/dmime/dmime_private.h @@ -547,8 +547,8 @@ extern ULONG WINAPI IDirectMusicWaveTrack_IPersistStream_AddRef (LPPERSISTSTRE * 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 ce81fb629a8..407380f6289 100644 --- a/dlls/dmscript/dmscript_private.h +++ b/dlls/dmscript/dmscript_private.h @@ -112,8 +112,8 @@ extern ULONG WINAPI IDirectMusicScriptTrack_IPersistStream_AddRef (LPPERSISTST * 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 4a175b2e069..9c9a911adcc 100644 --- a/dlls/dmstyle/dmstyle_private.h +++ b/dlls/dmstyle/dmstyle_private.h @@ -299,8 +299,8 @@ extern ULONG WINAPI IDirectMusicStyleTrack_IPersistStream_AddRef (LPPERSISTSTR * 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 aca175543a2..d0f7a605144 100644 --- a/dlls/dmsynth/dmsynth_private.h +++ b/dlls/dmsynth/dmsynth_private.h @@ -89,8 +89,8 @@ extern ULONG WINAPI IDirectMusicSynthSinkImpl_AddRef (LPDIRECTMUSICSYNTHSINK i * 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 56a5a927826..a81e27f09cc 100644 --- a/dlls/dmusic/dmusic_private.h +++ b/dlls/dmusic/dmusic_private.h @@ -286,8 +286,8 @@ extern HRESULT WINAPI IDirectMusicInstrumentImpl_Custom_Load (LPDIRECTMUSICINSTR * 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 480891bf396..be5f2b72498 100644 --- a/dlls/dsound/tests/ds3d.c +++ b/dlls/dsound/tests/ds3d.c @@ -1225,7 +1225,7 @@ static BOOL WINAPI dsenum_callback(LPGUID lpGuid, LPCSTR lpcstrDescription, 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 00cbc73f07e..bddb3ee6321 100644 --- a/dlls/dsound/tests/ds3d8.c +++ b/dlls/dsound/tests/ds3d8.c @@ -1118,7 +1118,7 @@ static BOOL WINAPI dsenum_callback(LPGUID lpGuid, LPCSTR lpcstrDescription, 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 0dc90e3edb7..7431a1b4918 100644 --- a/dlls/dsound/tests/dsound.c +++ b/dlls/dsound/tests/dsound.c @@ -168,7 +168,7 @@ EXIT: 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 @@ static BOOL WINAPI dsenum_callback(LPGUID lpGuid, LPCSTR lpcstrDescription, 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 e7d31c94650..bb0fc56f166 100644 --- a/dlls/dsound/tests/dsound8.c +++ b/dlls/dsound/tests/dsound8.c @@ -187,7 +187,7 @@ EXIT: 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 @@ static BOOL WINAPI dsenum_callback(LPGUID lpGuid, LPCSTR lpcstrDescription, 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 207b976332c..2fea8379e75 100644 --- a/dlls/dsound/tests/propset.c +++ b/dlls/dsound/tests/propset.c @@ -178,7 +178,7 @@ BOOL CALLBACK callbackW(PDSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_W_DATA data, return TRUE; } -static void propset_private_tests() +static void propset_private_tests(void) { HMODULE hDsound; HRESULT rc; @@ -700,7 +700,7 @@ EXIT: 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 2ef01a8942c..451df66502b 100644 --- a/dlls/dswave/dswave_private.h +++ b/dlls/dswave/dswave_private.h @@ -81,8 +81,8 @@ extern ULONG WINAPI IDirectMusicWaveImpl_IPersistStream_AddRef (LPPERSISTSTREA * 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 1a97af20b70..43cc777ef86 100644 --- a/dlls/dxdiagn/dxdiag_private.h +++ b/dlls/dxdiagn/dxdiag_private.h @@ -114,7 +114,7 @@ extern HRESULT DXDiag_InitRootDXDiagContainer(IDxDiagContainer* pRootCont); * 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 50c4b9de544..f4e22b6b30d 100644 --- a/dlls/gdi/tests/brush.c +++ b/dlls/gdi/tests/brush.c @@ -32,7 +32,7 @@ typedef struct _STOCK_BRUSH { 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 40a9457cba3..3754d697403 100644 --- a/dlls/kernel/tests/environ.c +++ b/dlls/kernel/tests/environ.c @@ -211,7 +211,7 @@ static void test_GetSetEnvironmentVariableW(void) 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 57fb11d4c27..655cb67a9e7 100644 --- a/dlls/kernel/tests/file.c +++ b/dlls/kernel/tests/file.c @@ -712,7 +712,7 @@ static void test_CreateFileW(void) "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 @@ static void test_file_sharing(void) 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 @@ static void test_FindFirstFileA() 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 @@ static int test_Mapfile_createtemp(HANDLE *handle) 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 72a59d1a3ee..cbf7462738d 100644 --- a/dlls/kernel/tests/locale.c +++ b/dlls/kernel/tests/locale.c @@ -135,7 +135,7 @@ static char GlobalBuffer[BUFFER_SIZE]; /* Buffer used by callback function */ #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 @@ static void test_GetLocaleInfoA() 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 @@ static void test_GetTimeFormatA() EXPECT_VALID; EXPECT_LENA; EXPECT_EQA; } -static void test_GetDateFormatA() +static void test_GetDateFormatA(void) { int ret; SYSTEMTIME curtime; @@ -375,7 +375,7 @@ static void test_GetDateFormatA() EXPECT_FLAGS; EXPECT_LEN(0); EXPECT_EQA; } -static void test_GetDateFormatW() +static void test_GetDateFormatW(void) { int ret; SYSTEMTIME curtime; @@ -416,7 +416,7 @@ static void test_GetDateFormatW() #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 @@ static void test_GetCurrencyFormatA() #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 @@ static BOOL CALLBACK EnumTimeFormatsProc(char * lpTimeFormatString) 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 @@ static void test_EnumTimeFormats() 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 8f8087564f4..b5f99ad7188 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 1d53bc8e53c..bc373766036 100644 --- a/dlls/mscms/tests/profile.c +++ b/dlls/mscms/tests/profile.c @@ -87,7 +87,7 @@ static void MSCMS_basenameW( LPCWSTR path, LPWSTR name ) lstrcpyW( name, &path[i] ); } -static void test_GetColorDirectoryA() +static void test_GetColorDirectoryA(void) { BOOL ret; DWORD size; @@ -121,7 +121,7 @@ static void test_GetColorDirectoryA() 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 @@ static void test_GetColorDirectoryW() 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_GetColorProfileElement() } } -static void test_GetColorProfileElementTag() +static void test_GetColorProfileElementTag(void) { if (standardprofile) { @@ -250,7 +250,7 @@ static void test_GetColorProfileElementTag() } } -static void test_GetColorProfileFromHandle() +static void test_GetColorProfileFromHandle(void) { if (testprofile) { @@ -308,7 +308,7 @@ static void test_GetColorProfileFromHandle() } } -static void test_GetColorProfileHeader() +static void test_GetColorProfileHeader(void) { if (testprofile) { @@ -346,7 +346,7 @@ static void test_GetColorProfileHeader() } } -static void test_GetCountColorProfileElements() +static void test_GetCountColorProfileElements(void) { if (standardprofile) { @@ -382,7 +382,7 @@ static void test_GetCountColorProfileElements() } } -static void test_GetStandardColorSpaceProfileA() +static void test_GetStandardColorSpaceProfileA(void) { BOOL ret; DWORD size; @@ -431,7 +431,7 @@ static void test_GetStandardColorSpaceProfileA() } } -static void test_GetStandardColorSpaceProfileW() +static void test_GetStandardColorSpaceProfileW(void) { BOOL ret; DWORD size; @@ -480,7 +480,7 @@ static void test_GetStandardColorSpaceProfileW() } } -static void test_InstallColorProfileA() +static void test_InstallColorProfileA(void) { BOOL ret; @@ -531,7 +531,7 @@ static void test_InstallColorProfileA() } } -static void test_InstallColorProfileW() +static void test_InstallColorProfileW(void) { BOOL ret; @@ -582,7 +582,7 @@ static void test_InstallColorProfileW() } } -static void test_IsColorProfileTagPresent() +static void test_IsColorProfileTagPresent(void) { if (standardprofile) { @@ -622,7 +622,7 @@ static void test_IsColorProfileTagPresent() } } -static void test_OpenColorProfileA() +static void test_OpenColorProfileA(void) { PROFILE profile; HPROFILE handle; @@ -672,7 +672,7 @@ static void test_OpenColorProfileA() } } -static void test_OpenColorProfileW() +static void test_OpenColorProfileW(void) { PROFILE profile; HPROFILE handle; @@ -722,7 +722,7 @@ static void test_OpenColorProfileW() } } -static void test_SetColorProfileElement() +static void test_SetColorProfileElement(void) { if (testprofile) { @@ -780,7 +780,7 @@ static void test_SetColorProfileElement() } } -static void test_SetColorProfileHeader() +static void test_SetColorProfileHeader(void) { if (testprofile) { @@ -851,7 +851,7 @@ static void test_SetColorProfileHeader() } } -static void test_UninstallColorProfileA() +static void test_UninstallColorProfileA(void) { BOOL ret; @@ -893,7 +893,7 @@ static void test_UninstallColorProfileA() } } -static void test_UninstallColorProfileW() +static void test_UninstallColorProfileW(void) { BOOL ret; diff --git a/dlls/msi/action.c b/dlls/msi/action.c index 6b45fa002e8..6ea7c0a67d7 100644 --- a/dlls/msi/action.c +++ b/dlls/msi/action.c @@ -2530,7 +2530,7 @@ static LPWSTR resolve_keypath( MSIPACKAGE* package, INT 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 35f52fce910..b22bdd6aa0f 100644 --- a/dlls/msi/tests/db.c +++ b/dlls/msi/tests/db.c @@ -222,7 +222,7 @@ static UINT try_insert_query( MSIHANDLE hdb, LPCSTR szQuery ) 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 8f70f7fabd9..1d142626f41 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 @@ void test_types() } /************* Checking structs ***************/ -void test_structs() +void test_structs(void) { CHECK_STRUCT(tm); CHECK_FIELD(tm, tm_sec); @@ -294,7 +294,7 @@ void test_structs() } /************* 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 a9620cccce2..006fda407c0 100644 --- a/dlls/ntdll/tests/large_int.c +++ b/dlls/ntdll/tests/large_int.c @@ -35,7 +35,7 @@ static NTSTATUS (WINAPI *pRtlLargeIntegerToChar)(ULONGLONG *, ULONG, ULONG, PCHA 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 9d665a29edc..29cca6fc071 100644 --- a/dlls/ntdll/tests/reg.c +++ b/dlls/ntdll/tests/reg.c @@ -341,7 +341,7 @@ static void test_RtlCheckRegistryKey(void) 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 0b3b14abbfd..cf582071bcb 100644 --- a/dlls/ole32/compobj.c +++ b/dlls/ole32/compobj.c @@ -197,7 +197,7 @@ static void COMPOBJ_UninitProcess( void ) 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 c2ba17707e0..f0e940bf393 100644 --- a/dlls/ole32/ifs.c +++ b/dlls/ole32/ifs.c @@ -501,7 +501,7 @@ static void WINAPI IMallocSpy_fnPostHeapMinimize(LPMALLOCSPY iface) 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 d154300329c..475943c7660 100644 --- a/dlls/ole32/tests/marshal.c +++ b/dlls/ole32/tests/marshal.c @@ -37,7 +37,7 @@ HRESULT (WINAPI * pCoInitializeEx)(LPVOID lpReserved, DWORD dwCoInit); #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 void test_CoGetPSClsid() 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 @@ static void end_host_object(DWORD tid, HANDLE thread) /* 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 @@ static void test_no_marshaler() } /* 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 @@ static void test_normal_marshal_and_release() } /* 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 @@ static void test_normal_marshal_and_unmarshal() } /* 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 @@ static void test_marshal_and_unmarshal_invalid() } /* 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 @@ static void test_interthread_marshal_and_unmarshal() } /* 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 @@ static void test_marshal_stub_apartment_shutdown() } /* 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 @@ static void test_marshal_proxy_apartment_shutdown() } /* 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 @@ static DWORD CALLBACK no_couninitialize_proc(LPVOID p) } /* 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 @@ static void test_no_couninitialize() } /* 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 @@ static void test_tableweak_marshal_and_unmarshal_twice() } /* 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 @@ static void test_tableweak_marshal_releasedata1() } /* 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 @@ static void test_tableweak_marshal_releasedata2() } /* 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 @@ static void test_tablestrong_marshal_and_unmarshal_twice() } /* tests CoLockObjectExternal */ -static void test_lock_object_external() +static void test_lock_object_external(void) { HRESULT hr; IStream *pStream = NULL; @@ -808,7 +808,7 @@ static void test_lock_object_external() } /* tests disconnecting stubs */ -static void test_disconnect_stub() +static void test_disconnect_stub(void) { HRESULT hr; IStream *pStream = NULL; @@ -837,7 +837,7 @@ static void test_disconnect_stub() } /* 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 @@ static void test_normal_marshal_and_unmarshal_twice() } /* 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 @@ static DWORD CALLBACK bad_thread_proc(LPVOID p) } /* 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 const IMessageFilterVtbl MessageFilter_Vtbl = 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 @@ static void test_message_filter() } /* 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 @@ static void test_bad_marshal_stream() } /* 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 LRESULT CALLBACK window_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM l } } -static void test_message_reentrancy() +static void test_message_reentrancy(void) { WNDCLASS wndclass; MSG msg; @@ -1540,7 +1540,7 @@ static void test_out_of_process_com() } #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 0c5aa61ba38..aa630c19f17 100644 --- a/dlls/ole32/tests/propvariant.c +++ b/dlls/ole32/tests/propvariant.c @@ -126,7 +126,7 @@ static const char* wine_vtypes[VT_CLSID+1] = "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_validtypes() } } -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 fe7a35a1998..68a652013a5 100644 --- a/dlls/oleaut32/tests/safearray.c +++ b/dlls/oleaut32/tests/safearray.c @@ -85,7 +85,7 @@ typedef struct IRecordInfoImpl 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 ca641a386ff..3e9b5dfa1f4 100644 --- a/dlls/qcap/qcap_main.c +++ b/dlls/qcap/qcap_main.c @@ -171,7 +171,7 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv) /*********************************************************************** * 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 63d84907657..52d24a861dc 100644 --- a/dlls/quartz/tests/filtergraph.c +++ b/dlls/quartz/tests/filtergraph.c @@ -31,13 +31,13 @@ static const WCHAR file[] = {'t','e','s','t','.','a','v','i',0}; 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 @@ static void renderfile() ok(hr==S_OK, "RenderFile returned: %lx\n", hr); } -static void rungraph() +static void rungraph(void) { HRESULT hr; IMediaControl* pmc; @@ -77,7 +77,7 @@ static void rungraph() 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 13a2eb10224..cde58012bf1 100644 --- a/dlls/shdocvw/shdocvw.h +++ b/dlls/shdocvw/shdocvw.h @@ -165,7 +165,7 @@ typedef struct * 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 927a9fa4ba8..b7fe66bd0a1 100644 --- a/dlls/shdocvw/shdocvw_main.c +++ b/dlls/shdocvw/shdocvw_main.c @@ -388,7 +388,7 @@ dlProc ( HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) } } -static BOOL SHDOCVW_TryDownloadMozillaControl() +static BOOL SHDOCVW_TryDownloadMozillaControl(void) { DWORD r; WCHAR buf[0x100]; @@ -414,7 +414,7 @@ static BOOL SHDOCVW_TryDownloadMozillaControl() 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 88171709986..960922d154d 100644 --- a/dlls/shell32/tests/shelllink.c +++ b/dlls/shell32/tests/shelllink.c @@ -83,7 +83,7 @@ static LPITEMIDLIST path_to_pidl(const char* path) * 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 @@ static void check_lnk_(int line, const WCHAR* path, lnk_desc_t* desc) 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 26785787347..4ff732b3004 100644 --- a/dlls/shlwapi/tests/clist.c +++ b/dlls/shlwapi/tests/clist.c @@ -212,7 +212,7 @@ static HRESULT (WINAPI *pSHLWAPI_213)(_IDummyStream*); 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 35cc00f839f..7146d1754da 100644 --- a/dlls/shlwapi/tests/shreg.c +++ b/dlls/shlwapi/tests/shreg.c @@ -321,7 +321,7 @@ static void test_SHCopyKey(void) 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 108ce99c325..44243069154 100644 --- a/dlls/user/combo.c +++ b/dlls/user/combo.c @@ -112,7 +112,7 @@ const struct builtin_class_descr COMBO_builtin_class = * * 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 71b62164658..746e01bae69 100644 --- a/dlls/user/tests/edit.c +++ b/dlls/user/tests/edit.c @@ -472,7 +472,7 @@ static void test_edit_control_2(void) 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 fbc0a33b1ab..56e513d347d 100644 --- a/dlls/wineps/afm.c +++ b/dlls/wineps/afm.c @@ -248,7 +248,7 @@ SHORT PSDRV_CalcAvgCharWidth(const AFM *afm) * */ -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 ebc9bd7dd5f..da3826fe8fc 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_WSAEnumProtocolsA() } } -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 490a00a624a..f72d2bb7884 100644 --- a/dlls/winspool/info.c +++ b/dlls/winspool/info.c @@ -3179,7 +3179,7 @@ static BOOL WINSPOOL_ComPortExists( LPCSTR name ) 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 d0731b44194..a873a5f43c8 100644 --- a/dlls/wintab32/context.c +++ b/dlls/wintab32/context.c @@ -120,7 +120,7 @@ static LPOPENCONTEXT TABLET_FindOpenContext(HCTX hCtx) 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 98f4d1562c5..850be242409 100644 --- a/programs/notepad/dialog.h +++ b/programs/notepad/dialog.h @@ -51,7 +51,7 @@ VOID DIALOG_HelpAboutWine(VOID); 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 d825596bbc7..d4c5b8843df 100644 --- a/programs/progman/grpfile.c +++ b/programs/progman/grpfile.c @@ -451,7 +451,7 @@ BYTE GRPFILE_checksum_last_byte; * GRPFILE_InitChecksum */ -static void GRPFILE_InitChecksum() +static void GRPFILE_InitChecksum(void) { GRPFILE_checksum = 0; GRPFILE_checksum_half_word = 0; @@ -462,7 +462,7 @@ static void GRPFILE_InitChecksum() * 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 02ebcf8213e..5aea2cf3f50 100644 --- a/tools/winegcc/winegcc.c +++ b/tools/winegcc/winegcc.c @@ -163,7 +163,7 @@ struct options strarray* files; }; -static void clean_temp_files() +static void clean_temp_files(void) { int i;