From 17da305890a440f7becca5394ae0a8613e8b316c Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Sat, 8 Aug 2015 21:15:29 +0000 Subject: warnings fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@14876 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/core/stdautoaway/src/autoaway.cpp | 2 +- src/core/stdautoaway/src/main.cpp | 4 ++-- src/core/stdaway/src/main.cpp | 4 ++-- src/core/stdchat/src/log.cpp | 2 +- src/core/stdchat/src/main.cpp | 22 +++++++++++----------- src/core/stdchat/src/options.cpp | 4 ++-- src/core/stdclist/src/clcfonts.cpp | 2 +- src/core/stdclist/src/clcopts.cpp | 4 ++-- src/core/stdclist/src/clistmenus.cpp | 2 +- src/core/stdclist/src/clistopts.cpp | 4 ++-- src/core/stdclist/src/cluiopts.cpp | 4 ++-- src/core/stdclist/src/init.cpp | 10 +++++----- src/core/stdclist/src/stdafx.h | 2 -- src/core/stdcrypt/src/main.cpp | 4 ++-- src/core/stdemail/src/main.cpp | 4 ++-- src/core/stdfile/src/main.cpp | 4 ++-- src/core/stdhelp/src/main.cpp | 4 ++-- src/core/stdidle/src/main.cpp | 4 ++-- src/core/stdmsg/src/cmdlist.cpp | 2 +- src/core/stdmsg/src/globals.cpp | 2 +- src/core/stdmsg/src/msgdialog.cpp | 2 +- src/core/stdmsg/src/msglog.cpp | 4 ++-- src/core/stdmsg/src/msgoptions.cpp | 4 ++-- src/core/stdmsg/src/msgs.cpp | 22 +++++++++++----------- src/core/stdmsg/src/srmm.cpp | 4 ++-- src/core/stdmsg/src/stdafx.h | 2 -- src/core/stdssl/src/main.cpp | 4 ++-- src/core/stdssl/src/netlibssl.cpp | 2 +- src/core/stdssl/src/stdafx.h | 2 -- src/core/stduihist/src/history.cpp | 2 +- src/core/stduihist/src/main.cpp | 4 ++-- src/core/stduserinfo/src/main.cpp | 4 ++-- src/core/stduseronline/src/main.cpp | 4 ++-- 33 files changed, 72 insertions(+), 78 deletions(-) (limited to 'src') diff --git a/src/core/stdautoaway/src/autoaway.cpp b/src/core/stdautoaway/src/autoaway.cpp index 4fabf0e68c..dd2a138a20 100644 --- a/src/core/stdautoaway/src/autoaway.cpp +++ b/src/core/stdautoaway/src/autoaway.cpp @@ -28,7 +28,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. static int iBreakSounds = 0; -static int AutoAwaySound(WPARAM, LPARAM lParam) +static int AutoAwaySound(WPARAM, LPARAM) { return iBreakSounds; } diff --git a/src/core/stdautoaway/src/main.cpp b/src/core/stdautoaway/src/main.cpp index 2e531df848..56049401f4 100644 --- a/src/core/stdautoaway/src/main.cpp +++ b/src/core/stdautoaway/src/main.cpp @@ -40,13 +40,13 @@ PLUGININFOEX pluginInfo = { { 0x9f5ca736, 0x1108, 0x4872, {0xbe, 0xc3, 0x19, 0xc8, 0x4b, 0xc2, 0x14, 0x3b}} }; -BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) +BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD, LPVOID) { hInst = hinstDLL; return TRUE; } -extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion) +extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD) { return &pluginInfo; } diff --git a/src/core/stdaway/src/main.cpp b/src/core/stdaway/src/main.cpp index 03ad0791f2..9f704b0c1e 100644 --- a/src/core/stdaway/src/main.cpp +++ b/src/core/stdaway/src/main.cpp @@ -41,13 +41,13 @@ PLUGININFOEX pluginInfo = { { 0xe58558e3, 0x83e7, 0x44ef, {0x8e, 0x39, 0xd9, 0xe0, 0x54, 0x19, 0x56, 0xdf}} }; -BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) +BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD, LPVOID) { hInst = hinstDLL; return TRUE; } -extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion) +extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD) { return &pluginInfo; } diff --git a/src/core/stdchat/src/log.cpp b/src/core/stdchat/src/log.cpp index bad245c46c..4f8afb0d38 100644 --- a/src/core/stdchat/src/log.cpp +++ b/src/core/stdchat/src/log.cpp @@ -49,7 +49,7 @@ static DWORD CALLBACK Log_StreamCallback(DWORD_PTR dwCookie, LPBYTE pbBuff, LONG return 0; } -void Log_StreamInEvent(HWND hwndDlg, LOGINFO* lin, SESSION_INFO *si, BOOL bRedraw, BOOL bPhaseTwo) +void Log_StreamInEvent(HWND hwndDlg, LOGINFO* lin, SESSION_INFO *si, BOOL bRedraw, BOOL) { CHARRANGE oldsel, sel, newsel; POINT point ={0}; diff --git a/src/core/stdchat/src/main.cpp b/src/core/stdchat/src/main.cpp index d7238ac74f..a65c523c7b 100644 --- a/src/core/stdchat/src/main.cpp +++ b/src/core/stdchat/src/main.cpp @@ -54,13 +54,13 @@ PLUGININFOEX pluginInfo = { {0x9d6c3213, 0x2b4, 0x4fe1, { 0x92, 0xe6, 0x52, 0x6d, 0xe1, 0x4f, 0x8d, 0x65 }} //{9D6C3213-02B4-4fe1-92E6-526DE14F8D65} }; -BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved) +BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD,LPVOID) { g_hInst = hinstDLL; return TRUE; } -extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion) +extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD) { return &pluginInfo; } @@ -437,32 +437,32 @@ STDMETHODIMP_(ULONG) CREOleCallback::Release() return refCount; } -STDMETHODIMP CREOleCallback::ContextSensitiveHelp(BOOL fEnterMode) +STDMETHODIMP CREOleCallback::ContextSensitiveHelp(BOOL) { return S_OK; } -STDMETHODIMP CREOleCallback::DeleteObject(LPOLEOBJECT lpoleobj) +STDMETHODIMP CREOleCallback::DeleteObject(LPOLEOBJECT) { return S_OK; } -STDMETHODIMP CREOleCallback::GetClipboardData(CHARRANGE * lpchrg, DWORD reco, LPDATAOBJECT * lplpdataobj) +STDMETHODIMP CREOleCallback::GetClipboardData(CHARRANGE*, DWORD, LPDATAOBJECT*) { return E_NOTIMPL; } -STDMETHODIMP CREOleCallback::GetContextMenu(WORD seltype, LPOLEOBJECT lpoleobj, CHARRANGE * lpchrg, HMENU * lphmenu) +STDMETHODIMP CREOleCallback::GetContextMenu(WORD, LPOLEOBJECT, CHARRANGE*, HMENU*) { return E_INVALIDARG; } -STDMETHODIMP CREOleCallback::GetDragDropEffect(BOOL fDrag, DWORD grfKeyState, LPDWORD pdwEffect) +STDMETHODIMP CREOleCallback::GetDragDropEffect(BOOL, DWORD, LPDWORD) { return S_OK; } -STDMETHODIMP CREOleCallback::GetInPlaceContext(LPOLEINPLACEFRAME * lplpFrame, LPOLEINPLACEUIWINDOW * lplpDoc, LPOLEINPLACEFRAMEINFO lpFrameInfo) +STDMETHODIMP CREOleCallback::GetInPlaceContext(LPOLEINPLACEFRAME*, LPOLEINPLACEUIWINDOW*, LPOLEINPLACEFRAMEINFO) { return E_INVALIDARG; } @@ -478,17 +478,17 @@ STDMETHODIMP CREOleCallback::GetNewStorage(LPSTORAGE * lplpstg) return pictStg->CreateStorage(szwName, STGM_READWRITE | STGM_SHARE_EXCLUSIVE | STGM_CREATE, 0, 0, lplpstg); } -STDMETHODIMP CREOleCallback::QueryAcceptData(LPDATAOBJECT lpdataobj, CLIPFORMAT * lpcfFormat, DWORD reco, BOOL fReally, HGLOBAL hMetaPict) +STDMETHODIMP CREOleCallback::QueryAcceptData(LPDATAOBJECT, CLIPFORMAT*, DWORD, BOOL, HGLOBAL) { return S_OK; } -STDMETHODIMP CREOleCallback::QueryInsertObject(LPCLSID lpclsid, LPSTORAGE lpstg, LONG cp) +STDMETHODIMP CREOleCallback::QueryInsertObject(LPCLSID, LPSTORAGE, LONG) { return S_OK; } -STDMETHODIMP CREOleCallback::ShowContainerUI(BOOL fShow) +STDMETHODIMP CREOleCallback::ShowContainerUI(BOOL) { return S_OK; } diff --git a/src/core/stdchat/src/options.cpp b/src/core/stdchat/src/options.cpp index 7211120663..a3abd05109 100644 --- a/src/core/stdchat/src/options.cpp +++ b/src/core/stdchat/src/options.cpp @@ -330,7 +330,7 @@ static void InitSetting(TCHAR** ppPointer, char* pszSetting, TCHAR* pszDefault) static HTREEITEM hListHeading0, hListHeading1, hListHeading2, hListHeading3, hListHeading4, hListHeading5, hListHeading6; -static INT_PTR CALLBACK DlgProcOptions1(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) +static INT_PTR CALLBACK DlgProcOptions1(HWND hwndDlg, UINT uMsg, WPARAM, LPARAM lParam) { switch (uMsg) { case WM_INITDIALOG: @@ -722,7 +722,7 @@ static INT_PTR CALLBACK DlgProcOptionsPopup(HWND hwndDlg, UINT uMsg, WPARAM wPar return FALSE; } -int OptionsInitialize(WPARAM wParam, LPARAM lParam) +int OptionsInitialize(WPARAM wParam, LPARAM) { OPTIONSDIALOGPAGE odp = { 0 }; odp.position = 910000000; diff --git a/src/core/stdclist/src/clcfonts.cpp b/src/core/stdclist/src/clcfonts.cpp index 9f00cd8974..fdc3b07a31 100644 --- a/src/core/stdclist/src/clcfonts.cpp +++ b/src/core/stdclist/src/clcfonts.cpp @@ -43,7 +43,7 @@ static clistFontDescr[] = { LPGENT("Offline contacts to whom you have a different visibility"), FIDF_CLASSGENERAL } }; -static int FS_FontsChanged(WPARAM wParam, LPARAM lParam) +static int FS_FontsChanged(WPARAM, LPARAM) { pcli->pfnClcOptionsChanged(); return 0; diff --git a/src/core/stdclist/src/clcopts.cpp b/src/core/stdclist/src/clcopts.cpp index a183703487..4faf435ef9 100644 --- a/src/core/stdclist/src/clcopts.cpp +++ b/src/core/stdclist/src/clcopts.cpp @@ -425,7 +425,7 @@ static INT_PTR CALLBACK DlgProcClcBkgOpts(HWND hwndDlg, UINT msg, WPARAM wParam, /****************************************************************************************/ -int ClcOptInit(WPARAM wParam, LPARAM lParam) +int ClcOptInit(WPARAM wParam, LPARAM) { OPTIONSDIALOGPAGE odp = { 0 }; odp.hInstance = g_hInst; @@ -444,7 +444,7 @@ int ClcOptInit(WPARAM wParam, LPARAM lParam) return 0; } -int ClcModernOptInit(WPARAM wParam, LPARAM lParam) +int ClcModernOptInit(WPARAM wParam, LPARAM) { static int iBoldControls[] = { diff --git a/src/core/stdclist/src/clistmenus.cpp b/src/core/stdclist/src/clistmenus.cpp index 66fbbe894f..161007251c 100644 --- a/src/core/stdclist/src/clistmenus.cpp +++ b/src/core/stdclist/src/clistmenus.cpp @@ -24,7 +24,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "stdafx.h" -static INT_PTR CloseAction(WPARAM wParam, LPARAM lParam) +static INT_PTR CloseAction(WPARAM, LPARAM) { if (CallService(MS_SYSTEM_OKTOEXIT, 0, 0)) DestroyWindow(pcli->hwndContactList); diff --git a/src/core/stdclist/src/clistopts.cpp b/src/core/stdclist/src/clistopts.cpp index 5d11a6490e..8748604ff9 100644 --- a/src/core/stdclist/src/clistopts.cpp +++ b/src/core/stdclist/src/clistopts.cpp @@ -235,7 +235,7 @@ static INT_PTR CALLBACK DlgProcGenOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LP /****************************************************************************************/ -int CListOptInit(WPARAM wParam, LPARAM lParam) +int CListOptInit(WPARAM wParam, LPARAM) { OPTIONSDIALOGPAGE odp = { 0 }; odp.position = -1000000000; @@ -248,7 +248,7 @@ int CListOptInit(WPARAM wParam, LPARAM lParam) return 0; } -int CListModernOptInit(WPARAM wParam, LPARAM lParam) +int CListModernOptInit(WPARAM wParam, LPARAM) { static int iBoldControls[] = { diff --git a/src/core/stdclist/src/cluiopts.cpp b/src/core/stdclist/src/cluiopts.cpp index 9263b53284..446cf14d0b 100644 --- a/src/core/stdclist/src/cluiopts.cpp +++ b/src/core/stdclist/src/cluiopts.cpp @@ -313,7 +313,7 @@ static INT_PTR CALLBACK DlgProcSBarOpts(HWND hwndDlg, UINT msg, WPARAM wParam, L /****************************************************************************************/ -int CluiOptInit(WPARAM wParam, LPARAM lParam) +int CluiOptInit(WPARAM wParam, LPARAM) { OPTIONSDIALOGPAGE odp = { 0 }; odp.hInstance = g_hInst; @@ -332,7 +332,7 @@ int CluiOptInit(WPARAM wParam, LPARAM lParam) return 0; } -int CluiModernOptInit(WPARAM wParam, LPARAM lParam) +int CluiModernOptInit(WPARAM wParam, LPARAM) { static int iBoldControls[] = { diff --git a/src/core/stdclist/src/init.cpp b/src/core/stdclist/src/init.cpp index 7333402024..5b84ea4b1e 100644 --- a/src/core/stdclist/src/init.cpp +++ b/src/core/stdclist/src/init.cpp @@ -46,7 +46,7 @@ int CListModernOptInit(WPARAM wParam, LPARAM lParam); ///////////////////////////////////////////////////////////////////////////////////////// // dll stub -BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD dwReason, LPVOID reserved) +BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD, LPVOID) { g_hInst = hInstDLL; return TRUE; @@ -69,7 +69,7 @@ PLUGININFOEX pluginInfo = { { 0x240a91dc, 0x9464, 0x457a, { 0x97, 0x87, 0xff, 0x1e, 0xa8, 0x8e, 0x77, 0xe2 } } }; -extern "C" __declspec(dllexport) PLUGININFOEX *MirandaPluginInfoEx(DWORD mirandaVersion) +extern "C" __declspec(dllexport) PLUGININFOEX *MirandaPluginInfoEx(DWORD) { return &pluginInfo; } @@ -82,7 +82,7 @@ extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = { MIID_CLIST, ///////////////////////////////////////////////////////////////////////////////////////// // called when number of accounts has been changed -static int OnAccountsChanged(WPARAM wParam, LPARAM lParam) +static int OnAccountsChanged(WPARAM, LPARAM) { himlCListClc = (HIMAGELIST)CallService(MS_CLIST_GETICONSIMAGELIST, 0, 0); return 0; @@ -92,7 +92,7 @@ static int OnAccountsChanged(WPARAM wParam, LPARAM lParam) // called when all modules got loaded static int OnModernOptsInit(WPARAM wParam, LPARAM lParam); -static int OnModulesLoaded(WPARAM wParam, LPARAM lParam) +static int OnModulesLoaded(WPARAM, LPARAM) { HookEvent(ME_MODERNOPT_INITIALIZE, OnModernOptsInit); RegisterCListFonts(); @@ -122,7 +122,7 @@ static int OnModernOptsInit(WPARAM wParam, LPARAM lParam) ///////////////////////////////////////////////////////////////////////////////////////// // menu status services -static INT_PTR GetStatusMode(WPARAM wParam, LPARAM lParam) +static INT_PTR GetStatusMode(WPARAM, LPARAM) { return pcli->currentDesiredStatusMode; } diff --git a/src/core/stdclist/src/stdafx.h b/src/core/stdclist/src/stdafx.h index deff5b4d14..827b60261e 100644 --- a/src/core/stdclist/src/stdafx.h +++ b/src/core/stdclist/src/stdafx.h @@ -22,8 +22,6 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#define _CRT_SECURE_NO_WARNINGS - #include #include #include diff --git a/src/core/stdcrypt/src/main.cpp b/src/core/stdcrypt/src/main.cpp index a9a5ded4e3..827988357a 100644 --- a/src/core/stdcrypt/src/main.cpp +++ b/src/core/stdcrypt/src/main.cpp @@ -39,13 +39,13 @@ PLUGININFOEX pluginInfo = { { 0xd3637189, 0xa5a5, 0x41f5, {0xbc, 0x72, 0x67, 0xa2, 0xf8, 0xaf, 0x1b, 0x6f}} }; -BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) +BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD, LPVOID) { hInst = hinstDLL; return TRUE; } -extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion) +extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD) { return &pluginInfo; } diff --git a/src/core/stdemail/src/main.cpp b/src/core/stdemail/src/main.cpp index b6e40d03dc..c962ebfdbe 100644 --- a/src/core/stdemail/src/main.cpp +++ b/src/core/stdemail/src/main.cpp @@ -40,13 +40,13 @@ PLUGININFOEX pluginInfo = { {0xb774d10a, 0xc761, 0x11e1, {0x84, 0x05, 0x27, 0xe7, 0x61, 0x88, 0x70, 0x9b }} }; -BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) +BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD, LPVOID) { hInst = hinstDLL; return TRUE; } -extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion) +extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD) { return &pluginInfo; } diff --git a/src/core/stdfile/src/main.cpp b/src/core/stdfile/src/main.cpp index def45ed151..35d30c1f8c 100644 --- a/src/core/stdfile/src/main.cpp +++ b/src/core/stdfile/src/main.cpp @@ -43,13 +43,13 @@ PLUGININFOEX pluginInfo = { { 0x39698dce, 0x7ed4, 0x4334, {0xac, 0x4c, 0xba, 0x8b, 0x37, 0xa8, 0x6f, 0x13}} }; -BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) +BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD, LPVOID) { hInst = hinstDLL; return TRUE; } -extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion) +extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD) { return &pluginInfo; } diff --git a/src/core/stdhelp/src/main.cpp b/src/core/stdhelp/src/main.cpp index e6e207a58d..0a38cfb9f8 100644 --- a/src/core/stdhelp/src/main.cpp +++ b/src/core/stdhelp/src/main.cpp @@ -41,13 +41,13 @@ PLUGININFOEX pluginInfo = { { 0x1e64fd80, 0x299e, 0x48a0, {0x94, 0x41, 0xde, 0x28, 0x68, 0x56, 0x3b, 0x6f}} }; -BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) +BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD, LPVOID ) { hInst = hinstDLL; return TRUE; } -extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion) +extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD) { return &pluginInfo; } diff --git a/src/core/stdidle/src/main.cpp b/src/core/stdidle/src/main.cpp index 768e0386d2..e9e73f9455 100644 --- a/src/core/stdidle/src/main.cpp +++ b/src/core/stdidle/src/main.cpp @@ -42,13 +42,13 @@ PLUGININFOEX pluginInfo = { { 0x53ac190b, 0xe223, 0x4341, {0x82, 0x5f, 0x70, 0x9d, 0x85, 0x20, 0x21, 0x5b}} }; -BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) +BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD, LPVOID) { hInst = hinstDLL; return TRUE; } -extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion) +extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD) { return &pluginInfo; } diff --git a/src/core/stdmsg/src/cmdlist.cpp b/src/core/stdmsg/src/cmdlist.cpp index 80e54b6f76..5b02656cf6 100644 --- a/src/core/stdmsg/src/cmdlist.cpp +++ b/src/core/stdmsg/src/cmdlist.cpp @@ -27,7 +27,7 @@ static UINT_PTR timerId; void MessageFailureProcess(TMsgQueue *item, const char* err); -static VOID CALLBACK MsgTimer(HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime) +static VOID CALLBACK MsgTimer(HWND, UINT, UINT_PTR, DWORD dwTime) { LIST arTimedOut(1); { diff --git a/src/core/stdmsg/src/globals.cpp b/src/core/stdmsg/src/globals.cpp index a59b1d9a1a..96c0739145 100644 --- a/src/core/stdmsg/src/globals.cpp +++ b/src/core/stdmsg/src/globals.cpp @@ -73,7 +73,7 @@ static int dbaddedevent(WPARAM hContact, LPARAM hDbEvent) return 0; } -static int ackevent(WPARAM wParam, LPARAM lParam) +static int ackevent(WPARAM, LPARAM lParam) { ACKDATA *pAck = (ACKDATA *)lParam; if (pAck && pAck->type == ACKTYPE_MESSAGE) { diff --git a/src/core/stdmsg/src/msgdialog.cpp b/src/core/stdmsg/src/msgdialog.cpp index 5b91776990..f91bafb564 100644 --- a/src/core/stdmsg/src/msgdialog.cpp +++ b/src/core/stdmsg/src/msgdialog.cpp @@ -66,7 +66,7 @@ static int RTL_Detect(const TCHAR *ptszText) return 0; } -int SendMessageDirect(const TCHAR *szMsg, MCONTACT hContact, char *szProto) +int SendMessageDirect(const TCHAR *szMsg, MCONTACT hContact, char*) { if (hContact == NULL) return NULL; diff --git a/src/core/stdmsg/src/msglog.cpp b/src/core/stdmsg/src/msglog.cpp index 2b2210d875..c459a50fb8 100644 --- a/src/core/stdmsg/src/msglog.cpp +++ b/src/core/stdmsg/src/msglog.cpp @@ -167,7 +167,7 @@ static int AppendToBufferWithRTF(char *&buffer, size_t &cbBufferEnd, size_t &cbB #define FONT_FORMAT "{\\f%u\\fnil\\fcharset%u %S;}" -static char *CreateRTFHeader(SrmmWindowData *dat) +static char *CreateRTFHeader(SrmmWindowData*) { HDC hdc = GetDC(NULL); logPixelSY = GetDeviceCaps(hdc, LOGPIXELSY); @@ -196,7 +196,7 @@ static char *CreateRTFHeader(SrmmWindowData *dat) } //mir_free() the return value -static char *CreateRTFTail(SrmmWindowData *dat) +static char *CreateRTFTail(SrmmWindowData*) { size_t bufferEnd = 0, bufferAlloced = 1024; char *buffer = (char *)mir_alloc(bufferAlloced); diff --git a/src/core/stdmsg/src/msgoptions.cpp b/src/core/stdmsg/src/msgoptions.cpp index 905b7c4061..ea1771a910 100644 --- a/src/core/stdmsg/src/msgoptions.cpp +++ b/src/core/stdmsg/src/msgoptions.cpp @@ -46,7 +46,7 @@ static const fontOptionsList[] = { LPGENT("Other events"), RGB(90, 90, 160), _T("Arial"), 0, -12}, }; -static BYTE MsgDlgGetFontDefaultCharset(const TCHAR* szFont) +static BYTE MsgDlgGetFontDefaultCharset(const TCHAR*) { return DEFAULT_CHARSET; } @@ -579,7 +579,7 @@ static int OptInitialise(WPARAM wParam, LPARAM) return 0; } -static int ModernOptInitialise(WPARAM wParam, LPARAM lParam) +static int ModernOptInitialise(WPARAM wParam, LPARAM) { static int iBoldControls[] = { diff --git a/src/core/stdmsg/src/msgs.cpp b/src/core/stdmsg/src/msgs.cpp index d4189bcf8d..5436d0d6c6 100644 --- a/src/core/stdmsg/src/msgs.cpp +++ b/src/core/stdmsg/src/msgs.cpp @@ -142,7 +142,7 @@ static INT_PTR SendMessageCommand(WPARAM wParam, LPARAM lParam) return SendMessageCmd(wParam, (char*)lParam, FALSE); } -static INT_PTR ReadMessageCommand(WPARAM wParam, LPARAM lParam) +static INT_PTR ReadMessageCommand(WPARAM, LPARAM lParam) { CLISTEVENT *cle = (CLISTEVENT *)lParam; if (cle) @@ -310,7 +310,7 @@ static int IconsChanged(WPARAM, LPARAM) return 0; } -static int PrebuildContactMenu(WPARAM hContact, LPARAM lParam) +static int PrebuildContactMenu(WPARAM hContact, LPARAM) { if (hContact) { bool bEnabled = false; @@ -482,32 +482,32 @@ STDMETHODIMP_(ULONG) CREOleCallback::Release() return refCount; } -STDMETHODIMP CREOleCallback::ContextSensitiveHelp(BOOL fEnterMode) +STDMETHODIMP CREOleCallback::ContextSensitiveHelp(BOOL) { return S_OK; } -STDMETHODIMP CREOleCallback::DeleteObject(LPOLEOBJECT lpoleobj) +STDMETHODIMP CREOleCallback::DeleteObject(LPOLEOBJECT) { return S_OK; } -STDMETHODIMP CREOleCallback::GetClipboardData(CHARRANGE * lpchrg, DWORD reco, LPDATAOBJECT * lplpdataobj) +STDMETHODIMP CREOleCallback::GetClipboardData(CHARRANGE*, DWORD, LPDATAOBJECT*) { return E_NOTIMPL; } -STDMETHODIMP CREOleCallback::GetContextMenu(WORD seltype, LPOLEOBJECT lpoleobj, CHARRANGE * lpchrg, HMENU * lphmenu) +STDMETHODIMP CREOleCallback::GetContextMenu(WORD, LPOLEOBJECT, CHARRANGE*, HMENU*) { return E_INVALIDARG; } -STDMETHODIMP CREOleCallback::GetDragDropEffect(BOOL fDrag, DWORD grfKeyState, LPDWORD pdwEffect) +STDMETHODIMP CREOleCallback::GetDragDropEffect(BOOL, DWORD, LPDWORD) { return S_OK; } -STDMETHODIMP CREOleCallback::GetInPlaceContext(LPOLEINPLACEFRAME * lplpFrame, LPOLEINPLACEUIWINDOW * lplpDoc, LPOLEINPLACEFRAMEINFO lpFrameInfo) +STDMETHODIMP CREOleCallback::GetInPlaceContext(LPOLEINPLACEFRAME*, LPOLEINPLACEUIWINDOW*, LPOLEINPLACEFRAMEINFO) { return E_INVALIDARG; } @@ -523,17 +523,17 @@ STDMETHODIMP CREOleCallback::GetNewStorage(LPSTORAGE * lplpstg) return pictStg->CreateStorage(szwName, STGM_READWRITE | STGM_SHARE_EXCLUSIVE | STGM_CREATE, 0, 0, lplpstg); } -STDMETHODIMP CREOleCallback::QueryAcceptData(LPDATAOBJECT lpdataobj, CLIPFORMAT * lpcfFormat, DWORD reco, BOOL fReally, HGLOBAL hMetaPict) +STDMETHODIMP CREOleCallback::QueryAcceptData(LPDATAOBJECT, CLIPFORMAT*, DWORD, BOOL, HGLOBAL) { return S_OK; } -STDMETHODIMP CREOleCallback::QueryInsertObject(LPCLSID lpclsid, LPSTORAGE lpstg, LONG cp) +STDMETHODIMP CREOleCallback::QueryInsertObject(LPCLSID, LPSTORAGE, LONG) { return S_OK; } -STDMETHODIMP CREOleCallback::ShowContainerUI(BOOL fShow) +STDMETHODIMP CREOleCallback::ShowContainerUI(BOOL) { return S_OK; } diff --git a/src/core/stdmsg/src/srmm.cpp b/src/core/stdmsg/src/srmm.cpp index ac63fcb764..f1b64445e1 100644 --- a/src/core/stdmsg/src/srmm.cpp +++ b/src/core/stdmsg/src/srmm.cpp @@ -41,13 +41,13 @@ PLUGININFOEX pluginInfo = { {0x657fe89b, 0xd121, 0x40c2, { 0x8a, 0xc9, 0xb9, 0xfa, 0x57, 0x55, 0xb3, 0x0D }} //{657FE89B-D121-40c2-8AC9-B9FA5755B30D} }; -BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) +BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD, LPVOID) { g_hInst = hinstDLL; return TRUE; } -extern "C" __declspec(dllexport) PLUGININFOEX *MirandaPluginInfoEx(DWORD mirandaVersion) +extern "C" __declspec(dllexport) PLUGININFOEX *MirandaPluginInfoEx(DWORD) { return &pluginInfo; } diff --git a/src/core/stdmsg/src/stdafx.h b/src/core/stdmsg/src/stdafx.h index db3d85499d..41722b55f7 100644 --- a/src/core/stdmsg/src/stdafx.h +++ b/src/core/stdmsg/src/stdafx.h @@ -21,8 +21,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #define WIN32_LEAN_AND_MEAN -#define _CRT_SECURE_NO_WARNINGS - #include #include #include diff --git a/src/core/stdssl/src/main.cpp b/src/core/stdssl/src/main.cpp index 51536dce9e..219c71d8fd 100644 --- a/src/core/stdssl/src/main.cpp +++ b/src/core/stdssl/src/main.cpp @@ -41,13 +41,13 @@ PLUGININFOEX pluginInfo = { { 0x1e64fd80, 0x299e, 0x48a0, {0x94, 0x41, 0xde, 0x28, 0x68, 0x56, 0x3b, 0x6f}} }; -BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) +BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD, LPVOID) { hInst = hinstDLL; return TRUE; } -extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion) +extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD) { return &pluginInfo; } diff --git a/src/core/stdssl/src/netlibssl.cpp b/src/core/stdssl/src/netlibssl.cpp index abcc58ff16..1c5dd33569 100644 --- a/src/core/stdssl/src/netlibssl.cpp +++ b/src/core/stdssl/src/netlibssl.cpp @@ -62,7 +62,7 @@ struct SslHandle SocketState state; }; -static void ReportSslError(SECURITY_STATUS scRet, int line, bool showPopup = false) +static void ReportSslError(SECURITY_STATUS scRet, int line, bool = false) { TCHAR szMsgBuf[256]; switch (scRet) { diff --git a/src/core/stdssl/src/stdafx.h b/src/core/stdssl/src/stdafx.h index fcfad31b67..ea87e2353e 100644 --- a/src/core/stdssl/src/stdafx.h +++ b/src/core/stdssl/src/stdafx.h @@ -19,8 +19,6 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#define _CRT_SECURE_NO_WARNINGS - #include #include #include diff --git a/src/core/stduihist/src/history.cpp b/src/core/stduihist/src/history.cpp index 2ae5a390a3..ee71980203 100644 --- a/src/core/stduihist/src/history.cpp +++ b/src/core/stduihist/src/history.cpp @@ -384,7 +384,7 @@ static int HistoryContactDelete(WPARAM wParam, LPARAM) return 0; } -static int PrebuildContactMenu(WPARAM hContact, LPARAM lParam) +static int PrebuildContactMenu(WPARAM hContact, LPARAM) { Menu_ShowItem(hContactMenu, db_event_last(hContact) != NULL); return 0; diff --git a/src/core/stduihist/src/main.cpp b/src/core/stduihist/src/main.cpp index 816b4356bb..8577237562 100644 --- a/src/core/stduihist/src/main.cpp +++ b/src/core/stduihist/src/main.cpp @@ -41,13 +41,13 @@ PLUGININFOEX pluginInfo = { { 0x5eedf3c5, 0x3071, 0x4234, {0xa6, 0x27, 0xef, 0xd0, 0x62, 0xa4, 0xd6, 0x94}} }; -BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) +BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD, LPVOID) { hInst = hinstDLL; return TRUE; } -extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion) +extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD) { return &pluginInfo; } diff --git a/src/core/stduserinfo/src/main.cpp b/src/core/stduserinfo/src/main.cpp index b1c8b685db..895a3051a0 100644 --- a/src/core/stduserinfo/src/main.cpp +++ b/src/core/stduserinfo/src/main.cpp @@ -41,13 +41,13 @@ PLUGININFOEX pluginInfo = { {0x8198dc94, 0xbc4, 0x448a, {0x84, 0x95, 0x8f, 0xe8, 0x32, 0xc1, 0xd3, 0x33 }} }; -BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) +BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD, LPVOID) { hInst = hinstDLL; return TRUE; } -extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion) +extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD) { return &pluginInfo; } diff --git a/src/core/stduseronline/src/main.cpp b/src/core/stduseronline/src/main.cpp index 4a12160b98..1d3f17ece9 100644 --- a/src/core/stduseronline/src/main.cpp +++ b/src/core/stduseronline/src/main.cpp @@ -41,13 +41,13 @@ PLUGININFOEX pluginInfo = { { 0x251c78d7, 0xf6e0, 0x4083, {0x92, 0xdc, 0x25, 0x2d, 0xcb, 0x3b, 0xe7, 0x24}} }; -BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) +BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD, LPVOID) { hInst = hinstDLL; return TRUE; } -extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion) +extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD) { return &pluginInfo; } -- cgit v1.2.3