fix some more -Wstrict-prototypes warnings

Stefan Huehner stefan at huehner.org
Mon Jun 20 13:22:31 CDT 2005


Hi,

next patch in series to fix up so -Wstrict-prototypes warnings.

ChangeLog:
- fix some more -Wstrict-prototypes warnings

Regards,
Stefan

-------------- next part --------------
Index: dlls/./comctl32/tests/subclass.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/tests/subclass.c,v
retrieving revision 1.2
diff -u -p -r1.2 subclass.c
--- dlls/./comctl32/tests/subclass.c	26 Aug 2004 00:31:20 -0000	1.2
+++ dlls/./comctl32/tests/subclass.c	20 Jun 2005 17:20:57 -0000
@@ -134,7 +134,7 @@ static void add_message(const struct mes
     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 hw
     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);
-------------- next part --------------
Index: dlls/./dinput/tests/dinput_test.h
===================================================================
RCS file: /home/wine/wine/dlls/dinput/tests/dinput_test.h,v
retrieving revision 1.1
diff -u -p -r1.1 dinput_test.h
--- dlls/./dinput/tests/dinput_test.h	11 May 2005 12:05:17 -0000	1.1
+++ dlls/./dinput/tests/dinput_test.h	20 Jun 2005 17:21:00 -0000
@@ -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);
Index: dlls/./dinput/tests/mouse.c
===================================================================
RCS file: /home/wine/wine/dlls/dinput/tests/mouse.c,v
retrieving revision 1.1
diff -u -p -r1.1 mouse.c
--- dlls/./dinput/tests/mouse.c	11 May 2005 12:05:17 -0000	1.1
+++ dlls/./dinput/tests/mouse.c	20 Jun 2005 17:21:00 -0000
@@ -33,7 +33,7 @@
 #include "dxerr8.h"
 #include "dinput_test.h"
 
-static void mouse_tests()
+static void mouse_tests(void)
 {
 }
 
-------------- next part --------------
Index: dlls/./dsound/tests/capture.c
===================================================================
RCS file: /home/wine/wine/dlls/dsound/tests/capture.c,v
retrieving revision 1.22
diff -u -p -r1.22 capture.c
--- dlls/./dsound/tests/capture.c	12 Jun 2005 10:41:49 -0000	1.22
+++ dlls/./dsound/tests/capture.c	20 Jun 2005 17:21:02 -0000
@@ -186,7 +186,7 @@ EXIT:
        "should have 0\n", ref);
 }
 
-static void IDirectSoundCapture_tests()
+static void IDirectSoundCapture_tests(void)
 {
     HRESULT rc;
     LPDIRECTSOUNDCAPTURE dsco=NULL;
@@ -680,7 +680,7 @@ EXIT:
     return TRUE;
 }
 
-static void capture_tests()
+static void capture_tests(void)
 {
     HRESULT rc;
     rc=pDirectSoundCaptureEnumerateA(&dscenum_callback,NULL);
-------------- next part --------------
Index: dlls/./gdi/tests/metafile.c
===================================================================
RCS file: /home/wine/wine/dlls/gdi/tests/metafile.c,v
retrieving revision 1.9
diff -u -p -r1.9 metafile.c
--- dlls/./gdi/tests/metafile.c	15 Apr 2005 14:11:00 -0000	1.9
+++ dlls/./gdi/tests/metafile.c	20 Jun 2005 17:21:03 -0000
@@ -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
     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");
     {
-------------- next part --------------
Index: dlls/./msacm/tests/msacm.c
===================================================================
RCS file: /home/wine/wine/dlls/msacm/tests/msacm.c,v
retrieving revision 1.5
diff -u -p -r1.5 msacm.c
--- dlls/./msacm/tests/msacm.c	25 Apr 2005 10:48:38 -0000	1.5
+++ dlls/./msacm/tests/msacm.c	20 Jun 2005 17:21:06 -0000
@@ -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;
-------------- next part --------------
Index: dlls/./mscms/mscms_main.c
===================================================================
RCS file: /home/wine/wine/dlls/mscms/mscms_main.c,v
retrieving revision 1.8
diff -u -p -r1.8 mscms_main.c
--- dlls/./mscms/mscms_main.c	9 Mar 2005 18:42:52 -0000	1.8
+++ dlls/./mscms/mscms_main.c	20 Jun 2005 17:21:07 -0000
@@ -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)
-------------- next part --------------
Index: dlls/./msvcrt/tests/time.c
===================================================================
RCS file: /home/wine/wine/dlls/msvcrt/tests/time.c,v
retrieving revision 1.4
diff -u -p -r1.4 time.c
--- dlls/./msvcrt/tests/time.c	6 Nov 2004 03:53:53 -0000	1.4
+++ dlls/./msvcrt/tests/time.c	20 Jun 2005 17:21:08 -0000
@@ -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);
-------------- next part --------------
Index: dlls/./ntdll/tests/info.c
===================================================================
RCS file: /home/wine/wine/dlls/ntdll/tests/info.c,v
retrieving revision 1.10
diff -u -p -r1.10 info.c
--- dlls/./ntdll/tests/info.c	17 Jun 2005 20:55:40 -0000	1.10
+++ dlls/./ntdll/tests/info.c	20 Jun 2005 17:21:10 -0000
@@ -48,7 +48,7 @@ static BOOL InitFunctionPtrs(void)
     return TRUE;
 }
 
-static void test_query_basic()
+static void test_query_basic(void)
 {
     DWORD status;
     ULONG ReturnLength;
@@ -94,7 +94,7 @@ static void test_query_basic()
     ok( sbi.NumberOfProcessors > 0, "Expected more than 0 processors, got %d\n", sbi.NumberOfProcessors);
 }
 
-static void test_query_cpu()
+static void test_query_cpu(void)
 {
     DWORD status;
     ULONG ReturnLength;
@@ -109,7 +109,7 @@ static void test_query_cpu()
     ok( sci.FeatureSet != 0, "Expected some features for this processor, got %08lx\n", sci.FeatureSet);
 }
 
-static void test_query_timeofday()
+static void test_query_timeofday(void)
 {
     DWORD status;
     ULONG ReturnLength;
@@ -186,7 +186,7 @@ static void test_query_timeofday()
     trace("uCurrentTimeZoneId : (%ld)\n", sti.uCurrentTimeZoneId);
 }
 
-static void test_query_process()
+static void test_query_process(void)
 {
     DWORD status;
     ULONG ReturnLength;
@@ -288,7 +288,7 @@ static void test_query_process()
     HeapFree( GetProcessHeap(), 0, spi);
 }
 
-static void test_query_handle()
+static void test_query_handle(void)
 {
     DWORD status;
     ULONG ReturnLength;
@@ -321,7 +321,7 @@ static void test_query_handle()
     HeapFree( GetProcessHeap(), 0, shi);
 }
 
-static void test_query_process_basic()
+static void test_query_process_basic(void)
 {
     DWORD status;
     ULONG ReturnLength;
-------------- next part --------------
Index: dlls/./ole32/oleobj.c
===================================================================
RCS file: /home/wine/wine/dlls/ole32/oleobj.c,v
retrieving revision 1.25
diff -u -p -r1.25 oleobj.c
--- dlls/./ole32/oleobj.c	6 Jun 2005 19:50:37 -0000	1.25
+++ dlls/./ole32/oleobj.c	20 Jun 2005 17:21:10 -0000
@@ -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 DataA
 /******************************************************************************
  * DataAdviseHolder_Constructor
  */
-static IDataAdviseHolder* DataAdviseHolder_Constructor()
+static IDataAdviseHolder* DataAdviseHolder_Constructor(void)
 {
   DataAdviseHolder* newHolder;
 
Index: dlls/./ole32/tests/moniker.c
===================================================================
RCS file: /home/wine/wine/dlls/ole32/tests/moniker.c,v
retrieving revision 1.5
diff -u -p -r1.5 moniker.c
--- dlls/./ole32/tests/moniker.c	2 Jun 2005 20:06:33 -0000	1.5
+++ dlls/./ole32/tests/moniker.c	20 Jun 2005 17:21:10 -0000
@@ -58,7 +58,7 @@ static int count_moniker_matches(IBindCt
     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;
-------------- next part --------------
Index: dlls/./oleaut32/typelib.c
===================================================================
RCS file: /home/wine/wine/dlls/oleaut32/typelib.c,v
retrieving revision 1.153
diff -u -p -r1.153 typelib.c
--- dlls/./oleaut32/typelib.c	13 Jun 2005 09:59:55 -0000	1.153
+++ dlls/./oleaut32/typelib.c	20 Jun 2005 17:21:10 -0000
@@ -1328,7 +1328,7 @@ static TYPEDESC stndTypeDesc[VT_LPWSTR+1
     {{0},30},{{0},31}
 };
 
-static void TLB_abort()
+static void TLB_abort(void)
 {
     DebugBreak();
 }
-------------- next part --------------
Index: dlls/./riched20/editor.c
===================================================================
RCS file: /home/wine/wine/dlls/riched20/editor.c,v
retrieving revision 1.31
diff -u -p -r1.31 editor.c
--- dlls/./riched20/editor.c	20 Jun 2005 11:42:38 -0000	1.31
+++ dlls/./riched20/editor.c	20 Jun 2005 17:21:17 -0000
@@ -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);
 
Index: dlls/./riched20/editor.h
===================================================================
RCS file: /home/wine/wine/dlls/riched20/editor.h,v
retrieving revision 1.14
diff -u -p -r1.14 editor.h
--- dlls/./riched20/editor.h	16 Apr 2005 10:48:35 -0000	1.14
+++ dlls/./riched20/editor.h	20 Jun 2005 17:21:17 -0000
@@ -202,7 +202,7 @@ extern LRESULT CreateIRichEditOle(LPVOID
 /* wintest.c */
 
 /* editor.c */
-void ME_RegisterEditorClass();
+void ME_RegisterEditorClass(HINSTANCE hInstanc);
 ME_TextEditor *ME_MakeEditor(HWND hWnd);
 void ME_DestroyEditor(ME_TextEditor *editor);
 void ME_SendOldNotify(ME_TextEditor *editor, int nCode);
-------------- next part --------------
Index: dlls/./shlwapi/path.c
===================================================================
RCS file: /home/wine/wine/dlls/shlwapi/path.c,v
retrieving revision 1.53
diff -u -p -r1.53 path.c
--- dlls/./shlwapi/path.c	18 Apr 2005 15:36:20 -0000	1.53
+++ dlls/./shlwapi/path.c	20 Jun 2005 17:21:13 -0000
@@ -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;
Index: dlls/./shlwapi/tests/ordinal.c
===================================================================
RCS file: /home/wine/wine/dlls/shlwapi/tests/ordinal.c,v
retrieving revision 1.16
diff -u -p -r1.16 ordinal.c
--- dlls/./shlwapi/tests/ordinal.c	18 May 2005 15:33:20 -0000	1.16
+++ dlls/./shlwapi/tests/ordinal.c	20 Jun 2005 17:21:13 -0000
@@ -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;
-------------- next part --------------
Index: dlls/./urlmon/urlmon_main.h
===================================================================
RCS file: /home/wine/wine/dlls/urlmon/urlmon_main.h,v
retrieving revision 1.8
diff -u -p -r1.8 urlmon_main.h
--- dlls/./urlmon/urlmon_main.h	4 May 2005 10:36:54 -0000	1.8
+++ dlls/./urlmon/urlmon_main.h	20 Jun 2005 17:21:15 -0000
@@ -32,8 +32,8 @@ extern HRESULT ZoneMgrImpl_Construct(IUn
  * 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))
 
-------------- next part --------------
Index: dlls/./user/static.c
===================================================================
RCS file: /home/wine/wine/dlls/user/static.c,v
retrieving revision 1.7
diff -u -p -r1.7 static.c
--- dlls/./user/static.c	4 Jan 2005 11:51:14 -0000	1.7
+++ dlls/./user/static.c	20 Jun 2005 17:21:15 -0000
@@ -239,7 +239,7 @@ static VOID STATIC_TryPaintFcn(HWND hwnd
     }
 }
 
-static VOID STATIC_InitColours()
+static VOID STATIC_InitColours(void)
 {
     color_3ddkshadow  = GetSysColor(COLOR_3DDKSHADOW);
     color_3dshadow    = GetSysColor(COLOR_3DSHADOW);
Index: dlls/./user/tests/msg.c
===================================================================
RCS file: /home/wine/wine/dlls/user/tests/msg.c,v
retrieving revision 1.86
diff -u -p -r1.86 msg.c
--- dlls/./user/tests/msg.c	17 Jun 2005 21:05:16 -0000	1.86
+++ dlls/./user/tests/msg.c	20 Jun 2005 17:21:15 -0000
@@ -1095,7 +1095,7 @@ static void add_message(const struct mes
     sequence_cnt++;
 }
 
-static void flush_sequence()
+static void flush_sequence(void)
 {
     HeapFree(GetProcessHeap(), 0, sequence);
     sequence = 0;
-------------- next part --------------
Index: dlls/./uxtheme/system.c
===================================================================
RCS file: /home/wine/wine/dlls/uxtheme/system.c,v
retrieving revision 1.14
diff -u -p -r1.14 system.c
--- dlls/./uxtheme/system.c	9 Nov 2004 20:02:39 -0000	1.14
+++ dlls/./uxtheme/system.c	20 Jun 2005 17:21:16 -0000
@@ -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;
-------------- next part --------------
Index: dlls/./winedos/devices.c
===================================================================
RCS file: /home/wine/wine/dlls/winedos/devices.c,v
retrieving revision 1.13
diff -u -p -r1.13 devices.c
--- dlls/./winedos/devices.c	18 Apr 2005 15:36:20 -0000	1.13
+++ dlls/./winedos/devices.c	20 Jun 2005 17:21:18 -0000
@@ -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);
 }
-------------- next part --------------
Index: dlls/./winmm/tests/capture.c
===================================================================
RCS file: /home/wine/wine/dlls/winmm/tests/capture.c,v
retrieving revision 1.16
diff -u -p -r1.16 capture.c
--- dlls/./winmm/tests/capture.c	11 Apr 2005 12:49:22 -0000	1.16
+++ dlls/./winmm/tests/capture.c	20 Jun 2005 17:21:18 -0000
@@ -648,7 +648,7 @@ static void wave_in_test_device(int devi
               dev_name(device));
 }
 
-static void wave_in_tests()
+static void wave_in_tests(void)
 {
     WAVEINCAPSA capsA;
     WAVEINCAPSW capsW;


More information about the wine-patches mailing list