fix some more -Wstrict-prototypes warnings

Stefan Huehner stefan at huehner.org
Sun Jun 26 15:50:22 CDT 2005


Hi,

next path to fix more -Wstrict-prototypes warnings in test-case an
programs/start

ChangeLog:
- fix some -Wstrict-prototypes warnings

Regards,
Stefan

-------------- next part --------------
Index: dlls/msvcrt/tests/time.c
===================================================================
RCS file: /home/wine/wine/dlls/msvcrt/tests/time.c,v
retrieving revision 1.5
diff -u -p -r1.5 time.c
--- dlls/msvcrt/tests/time.c	21 Jun 2005 20:53:14 -0000	1.5
+++ dlls/msvcrt/tests/time.c	26 Jun 2005 20:45:38 -0000
@@ -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);
Index: dlls/ntdll/tests/path.c
===================================================================
RCS file: /home/wine/wine/dlls/ntdll/tests/path.c,v
retrieving revision 1.13
diff -u -p -r1.13 path.c
--- dlls/ntdll/tests/path.c	24 Jun 2005 11:55:28 -0000	1.13
+++ dlls/ntdll/tests/path.c	26 Jun 2005 20:45:38 -0000
@@ -219,7 +219,7 @@ static void test_RtlIsNameLegalDOS8Dot3(
         }
     }
 }
-static void test_RtlGetFullPathName_U()
+static void test_RtlGetFullPathName_U(void)
 {
     struct test
     {
Index: dlls/ntdll/tests/string.c
===================================================================
RCS file: /home/wine/wine/dlls/ntdll/tests/string.c,v
retrieving revision 1.8
diff -u -p -r1.8 string.c
--- dlls/ntdll/tests/string.c	17 Dec 2004 19:41:55 -0000	1.8
+++ dlls/ntdll/tests/string.c	26 Jun 2005 20:45:38 -0000
@@ -55,7 +55,7 @@ static long     (WINAPIV *pwcstol)(LPCWS
 static ULONG    (WINAPIV *pwcstoul)(LPCWSTR, LPWSTR *, INT);
 
 
-static void InitFunctionPtrs()
+static void InitFunctionPtrs(void)
 {
     hntdll = LoadLibraryA("ntdll.dll");
     ok(hntdll != 0, "LoadLibrary failed\n");
Index: dlls/oleaut32/tests/olepicture.c
===================================================================
RCS file: /home/wine/wine/dlls/oleaut32/tests/olepicture.c,v
retrieving revision 1.2
diff -u -p -r1.2 olepicture.c
--- dlls/oleaut32/tests/olepicture.c	17 Jun 2005 20:59:49 -0000	1.2
+++ dlls/oleaut32/tests/olepicture.c	26 Jun 2005 20:45:38 -0000
@@ -198,7 +198,7 @@ test_pic(const unsigned char *imgdata, u
 	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;
Index: dlls/shlwapi/tests/string.c
===================================================================
RCS file: /home/wine/wine/dlls/shlwapi/tests/string.c,v
retrieving revision 1.11
diff -u -p -r1.11 string.c
--- dlls/shlwapi/tests/string.c	14 Jun 2005 17:21:18 -0000	1.11
+++ dlls/shlwapi/tests/string.c	26 Jun 2005 20:45:38 -0000
@@ -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;
Index: dlls/urlmon/tests/url.c
===================================================================
RCS file: /home/wine/wine/dlls/urlmon/tests/url.c,v
retrieving revision 1.8
diff -u -p -r1.8 url.c
--- dlls/urlmon/tests/url.c	17 Jun 2005 10:11:37 -0000	1.8
+++ dlls/urlmon/tests/url.c	26 Jun 2005 20:45:39 -0000
@@ -186,7 +186,7 @@ static const IBindStatusCallbackVtbl sta
     statusclb_OnObjectAvailable
 };
 
-static IBindStatusCallback* statusclb_create()
+static IBindStatusCallback* statusclb_create(void)
 {
     statusclb *ret = HeapAlloc(GetProcessHeap(), 0, sizeof(statusclb));
     ret->lpVtbl = &statusclbVtbl;
Index: dlls/user/tests/menu.c
===================================================================
RCS file: /home/wine/wine/dlls/user/tests/menu.c,v
retrieving revision 1.3
diff -u -p -r1.3 menu.c
--- dlls/user/tests/menu.c	20 Jun 2005 14:12:39 -0000	1.3
+++ dlls/user/tests/menu.c	26 Jun 2005 20:45:39 -0000
@@ -127,7 +127,7 @@ static void register_menu_check_class(vo
 
 /* 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;
Index: programs/start/start.c
===================================================================
RCS file: /home/wine/wine/programs/start/start.c,v
retrieving revision 1.1
diff -u -p -r1.1 start.c
--- programs/start/start.c	21 Jan 2003 20:14:36 -0000	1.1
+++ programs/start/start.c	26 Jun 2005 20:45:40 -0000
@@ -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);
 }


More information about the wine-patches mailing list