[MPlayer-cvslog] r31615 - trunk/loader/wine/windef.h

diego subversion at mplayerhq.hu
Fri Jul 2 01:24:47 CEST 2010


Author: diego
Date: Fri Jul  2 01:24:46 2010
New Revision: 31615

Log:
Declare FARPROC/PROC/FARPROC16/PROC16 parameter lists as 'void'.

This is not strictly correct since the list of parameters can vary,
but it silences a long list of annoying warnings of the sort:
loader/wine/windef.h:305: warning: function declaration isn't a prototype

Modified:
   trunk/loader/wine/windef.h

Modified: trunk/loader/wine/windef.h
==============================================================================
--- trunk/loader/wine/windef.h	Fri Jul  2 01:18:16 2010	(r31614)
+++ trunk/loader/wine/windef.h	Fri Jul  2 01:24:46 2010	(r31615)
@@ -301,8 +301,9 @@ typedef LRESULT CALLBACK (*DRIVERPROC)(D
 typedef INT     CALLBACK (*EDITWORDBREAKPROCA)(LPSTR,INT,INT,INT);
 typedef INT     CALLBACK (*EDITWORDBREAKPROCW)(LPWSTR,INT,INT,INT);
 DECL_WINELIB_TYPE_AW(EDITWORDBREAKPROC)
-typedef LRESULT CALLBACK (*FARPROC)();
-typedef INT     CALLBACK (*PROC)();
+/* Parameter list (sometimes incorrectly) declared void to silence warnings. */
+typedef LRESULT CALLBACK (*FARPROC)(void);
+typedef INT     CALLBACK (*PROC)(void);
 typedef WIN_BOOL    CALLBACK (*GRAYSTRINGPROC)(HDC,LPARAM,INT);
 typedef LRESULT CALLBACK (*HOOKPROC)(INT,WPARAM,LPARAM);
 typedef WIN_BOOL    CALLBACK (*PROPENUMPROCA)(HWND,LPCSTR,HANDLE);
@@ -434,8 +435,9 @@ typedef struct
 typedef LRESULT CALLBACK (*DRIVERPROC16)(DWORD,HDRVR16,UINT16,LPARAM,LPARAM);
 typedef WIN_BOOL16  CALLBACK (*DLGPROC16)(HWND16,UINT16,WPARAM16,LPARAM);
 typedef INT16   CALLBACK (*EDITWORDBREAKPROC16)(LPSTR,INT16,INT16,INT16);
-typedef LRESULT CALLBACK (*FARPROC16)();
-typedef INT16   CALLBACK (*PROC16)();
+/* Parameter list (sometimes incorrectly) declared void to silence warnings. */
+typedef LRESULT CALLBACK (*FARPROC16)(void);
+typedef INT16   CALLBACK (*PROC16)(void);
 typedef WIN_BOOL16  CALLBACK (*GRAYSTRINGPROC16)(HDC16,LPARAM,INT16);
 typedef LRESULT CALLBACK (*HOOKPROC16)(INT16,WPARAM16,LPARAM);
 typedef WIN_BOOL16  CALLBACK (*PROPENUMPROC16)(HWND16,SEGPTR,HANDLE16);


More information about the MPlayer-cvslog mailing list