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/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 -- 7 files changed, 13 insertions(+), 15 deletions(-) (limited to 'src/core/stdclist') 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 -- cgit v1.2.3