Fix some -Wstrict-prototypes warnings.

This commit is contained in:
Stefan Huehner 2005-06-27 09:57:28 +00:00 committed by Alexandre Julliard
parent a1deba5ab4
commit ffe53258aa
8 changed files with 11 additions and 11 deletions

View File

@ -146,7 +146,7 @@ static void test_mktime(void)
ok(((DWORD)nulltime == SECSPERDAY),"mktime returned 0x%08lx\n",(DWORD)nulltime);
putenv(TZ_env);
}
static void test_localtime()
static void test_localtime(void)
{
TIME_ZONE_INFORMATION tzinfo;
DWORD res = GetTimeZoneInformation(&tzinfo);

View File

@ -219,7 +219,7 @@ static void test_RtlIsNameLegalDOS8Dot3(void)
}
}
}
static void test_RtlGetFullPathName_U()
static void test_RtlGetFullPathName_U(void)
{
struct test
{

View File

@ -55,7 +55,7 @@ static long (WINAPIV *pwcstol)(LPCWSTR, LPWSTR *, INT);
static ULONG (WINAPIV *pwcstoul)(LPCWSTR, LPWSTR *, INT);
static void InitFunctionPtrs()
static void InitFunctionPtrs(void)
{
hntdll = LoadLibraryA("ntdll.dll");
ok(hntdll != 0, "LoadLibrary failed\n");

View File

@ -198,7 +198,7 @@ test_pic(const unsigned char *imgdata, unsigned int imgsize)
ok (res == 0, "refcount after release is %ld, but should be 1?\n", res);
}
static void test_empty_image() {
static void test_empty_image(void) {
LPBYTE data;
LPSTREAM stream;
IPicture* pic = NULL;
@ -238,7 +238,7 @@ static void test_empty_image() {
IPicture_Release (pic);
}
static void test_empty_image_2() {
static void test_empty_image_2(void) {
LPBYTE data;
LPSTREAM stream;
IPicture* pic = NULL;

View File

@ -457,7 +457,7 @@ static void test_StrToIntExW(void)
}
}
static void test_StrDupA()
static void test_StrDupA(void)
{
LPSTR lpszStr;
const StrFormatSizeResult* result = StrFormatSize_results;

View File

@ -186,7 +186,7 @@ static const IBindStatusCallbackVtbl statusclbVtbl = {
statusclb_OnObjectAvailable
};
static IBindStatusCallback* statusclb_create()
static IBindStatusCallback* statusclb_create(void)
{
statusclb *ret = HeapAlloc(GetProcessHeap(), 0, sizeof(statusclb));
ret->lpVtbl = &statusclbVtbl;

View File

@ -127,7 +127,7 @@ static void register_menu_check_class(void)
/* demonstrates that windows lock the menu object so that it is still valid
* even after a client calls DestroyMenu on it */
static void test_menu_locked_by_window()
static void test_menu_locked_by_window(void)
{
BOOL ret;
HMENU hmenu;
@ -161,7 +161,7 @@ static void test_menu_locked_by_window()
DestroyWindow(hwnd);
}
static void test_menu_ownerdraw()
static void test_menu_ownerdraw(void)
{
int i,j,k;
BOOL ret;

View File

@ -91,12 +91,12 @@ static void fatal_string(int which)
ExitProcess(1);
}
static void usage()
static void usage(void)
{
fatal_string(STRING_USAGE);
}
static void license()
static void license(void)
{
fatal_string(STRING_LICENSE);
}