Mercurial > mplayer.hg
changeset 31549:77723c0716bb
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
author | diego |
---|---|
date | Thu, 01 Jul 2010 23:24:46 +0000 |
parents | 0c9300413b28 |
children | 0b34520a1c84 |
files | loader/wine/windef.h |
diffstat | 1 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/loader/wine/windef.h Thu Jul 01 23:18:16 2010 +0000 +++ b/loader/wine/windef.h Thu Jul 01 23:24:46 2010 +0000 @@ -301,8 +301,9 @@ 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 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);