Fix some more -Wstrict-prototypes warnings.

This commit is contained in:
Stefan Huehner 2005-06-21 20:53:13 +00:00 committed by Alexandre Julliard
parent 443ad4d328
commit 863a4b1488
21 changed files with 29 additions and 29 deletions

View File

@ -134,7 +134,7 @@ static void add_message(const struct message *msg)
sequence_cnt++;
}
static void flush_sequence()
static void flush_sequence(void)
{
HeapFree(GetProcessHeap(), 0, sequence);
sequence = 0;
@ -215,7 +215,7 @@ static LRESULT WINAPI WndProcSub(HWND hwnd, UINT message, WPARAM wParam, LPARAM
return pDefSubclassProc(hwnd, message, wParam, lParam);
}
static void test_subclass()
static void test_subclass(void)
{
HWND hwnd = CreateWindowExA(0, "TestSubclass", "Test subclass", WS_OVERLAPPEDWINDOW,
100, 100, 200, 200, 0, 0, 0, NULL);

View File

@ -16,5 +16,5 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
extern HWND get_hwnd();
extern HWND get_hwnd(void);
extern const char * get_file_version(const char * file_name);

View File

@ -33,7 +33,7 @@
#include "dxerr8.h"
#include "dinput_test.h"
static void mouse_tests()
static void mouse_tests(void)
{
}

View File

@ -186,7 +186,7 @@ EXIT:
"should have 0\n", ref);
}
static void IDirectSoundCapture_tests()
static void IDirectSoundCapture_tests(void)
{
HRESULT rc;
LPDIRECTSOUNDCAPTURE dsco=NULL;
@ -682,7 +682,7 @@ EXIT:
return TRUE;
}
static void capture_tests()
static void capture_tests(void)
{
HRESULT rc;
rc=pDirectSoundCaptureEnumerateA(&dscenum_callback,NULL);

View File

@ -358,7 +358,7 @@ static void test_mf_Blank(void)
/* Simple APIs from mfdrv/graphics.c
*/
static void test_mf_Graphics()
static void test_mf_Graphics(void)
{
HDC hdcMetafile;
HMETAFILE hMetafile;
@ -516,7 +516,7 @@ static HENHMETAFILE create_converted_emf(const METAFILEPICT *mfp)
return SetWinMetaFileBits(size, pBits, NULL, mfp);
}
static void test_mf_conversions()
static void test_mf_conversions(void)
{
trace("Testing MF->EMF conversion (MM_ANISOTROPIC)\n");
{

View File

@ -398,7 +398,7 @@ static DWORD check_count(UINT uMetric)
return dwMetric;
}
static void msacm_tests()
static void msacm_tests(void)
{
MMRESULT rc;
DWORD dwCount;

View File

@ -47,7 +47,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(mscms);
static void *lcmshandle = NULL;
#endif /* HAVE_LCMS_H */
static BOOL MSCMS_init_lcms()
static BOOL MSCMS_init_lcms(void)
{
#ifdef HAVE_LCMS_H
/* dynamically load lcms if not yet loaded */
@ -107,7 +107,7 @@ sym_not_found:
return TRUE;
}
static void MSCMS_deinit_lcms()
static void MSCMS_deinit_lcms(void)
{
#ifdef HAVE_LCMS_H
if (lcmshandle)

View File

@ -31,7 +31,7 @@
#define MINSPERHOUR 60
#define HOURSPERDAY 24
static void test_gmtime()
static void test_gmtime(void)
{
time_t gmt = (time_t)NULL;
struct tm* gmt_tm = gmtime(&gmt);
@ -48,7 +48,7 @@ static void test_gmtime()
gmt_tm->tm_hour, gmt_tm->tm_min, gmt_tm->tm_sec, gmt_tm->tm_isdst);
}
static void test_mktime()
static void test_mktime(void)
{
TIME_ZONE_INFORMATION tzinfo;
DWORD res = GetTimeZoneInformation(&tzinfo);

View File

@ -323,7 +323,7 @@ static const IOleAdviseHolderVtbl oahvt =
* OleAdviseHolderImpl_Constructor
*/
static LPOLEADVISEHOLDER OleAdviseHolderImpl_Constructor()
static LPOLEADVISEHOLDER OleAdviseHolderImpl_Constructor(void)
{
OleAdviseHolderImpl* lpoah;
DWORD index;
@ -639,7 +639,7 @@ static const IDataAdviseHolderVtbl DataAdviseHolderImpl_VTable =
/******************************************************************************
* DataAdviseHolder_Constructor
*/
static IDataAdviseHolder* DataAdviseHolder_Constructor()
static IDataAdviseHolder* DataAdviseHolder_Constructor(void)
{
DataAdviseHolder* newHolder;

View File

@ -58,7 +58,7 @@ static int count_moniker_matches(IBindCtx * pbc, IEnumMoniker * spEM)
return matchCnt;
}
static void test_MkParseDisplayName()
static void test_MkParseDisplayName(void)
{
IBindCtx * pbc = NULL;
HRESULT hr;
@ -178,7 +178,7 @@ static const BYTE expected_moniker_data[] =
static const LARGE_INTEGER llZero;
static void test_class_moniker()
static void test_class_moniker(void)
{
IStream * stream;
IMoniker * moniker;

View File

@ -1328,7 +1328,7 @@ static TYPEDESC stndTypeDesc[VT_LPWSTR+1]=
{{0},30},{{0},31}
};
static void TLB_abort()
static void TLB_abort(void)
{
DebugBreak();
}

View File

@ -231,7 +231,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(richedit);
int me_debug = 0;
HANDLE me_heap = NULL;
ME_TextBuffer *ME_MakeText() {
ME_TextBuffer *ME_MakeText(void) {
ME_TextBuffer *buf = ALLOC_OBJ(ME_TextBuffer);

View File

@ -202,7 +202,7 @@ extern LRESULT CreateIRichEditOle(LPVOID *);
/* wintest.c */
/* editor.c */
void ME_RegisterEditorClass();
void ME_RegisterEditorClass(HINSTANCE hInstance);
ME_TextEditor *ME_MakeEditor(HWND hWnd);
void ME_DestroyEditor(ME_TextEditor *editor);
void ME_SendOldNotify(ME_TextEditor *editor, int nCode);

View File

@ -2979,7 +2979,7 @@ UINT WINAPI PathGetCharTypeW(WCHAR ch)
*
* Internal helper for PathMakeSystemFolderW.
*/
static BOOL WINAPI SHLWAPI_UseSystemForSystemFolders()
static BOOL WINAPI SHLWAPI_UseSystemForSystemFolders(void)
{
static BOOL bCheckedReg = FALSE;
static BOOL bUseSystemForSystemFolders = FALSE;

View File

@ -198,7 +198,7 @@ static void test_SHSearchMapInt(void)
ok(i == values[0], "Len 3, expected %d, got %d\n", values[0], i);
}
static void test_alloc_shared()
static void test_alloc_shared(void)
{
DWORD procid;
HANDLE hmem;

View File

@ -32,8 +32,8 @@ extern HRESULT ZoneMgrImpl_Construct(IUnknown *pUnkOuter, LPVOID *ppobj);
* Dll lifetime tracking declaration for urlmon.dll
*/
extern LONG URLMON_refCount;
static inline void URLMON_LockModule() { InterlockedIncrement( &URLMON_refCount ); }
static inline void URLMON_UnlockModule() { InterlockedDecrement( &URLMON_refCount ); }
static inline void URLMON_LockModule(void) { InterlockedIncrement( &URLMON_refCount ); }
static inline void URLMON_UnlockModule(void) { InterlockedDecrement( &URLMON_refCount ); }
#define ICOM_THIS_MULTI(impl,field,iface) impl* const This=(impl*)((char*)(iface) - offsetof(impl,field))

View File

@ -239,7 +239,7 @@ static VOID STATIC_TryPaintFcn(HWND hwnd, LONG full_style)
}
}
static VOID STATIC_InitColours()
static VOID STATIC_InitColours(void)
{
color_3ddkshadow = GetSysColor(COLOR_3DDKSHADOW);
color_3dshadow = GetSysColor(COLOR_3DSHADOW);

View File

@ -1095,7 +1095,7 @@ static void add_message(const struct message *msg)
sequence_cnt++;
}
static void flush_sequence()
static void flush_sequence(void)
{
HeapFree(GetProcessHeap(), 0, sequence);
sequence = 0;

View File

@ -75,7 +75,7 @@ WCHAR szCurrentSize[64];
*
* Set the current active theme from the registry
*/
void UXTHEME_LoadTheme()
static void UXTHEME_LoadTheme(void)
{
HKEY hKey;
LONG buffsize;

View File

@ -196,7 +196,7 @@ typedef struct
DWORD DOS_LOLSeg;
static struct _DOS_LISTOFLISTS * DOSMEM_LOL()
static struct _DOS_LISTOFLISTS * DOSMEM_LOL(void)
{
return PTR_REAL_TO_LIN(HIWORD(DOS_LOLSeg),0);
}

View File

@ -648,7 +648,7 @@ static void wave_in_test_device(int device)
dev_name(device));
}
static void wave_in_tests()
static void wave_in_tests(void)
{
WAVEINCAPSA capsA;
WAVEINCAPSW capsW;