From b2ba573600e650273800774c7fad23268019a353 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sun, 21 Dec 2014 07:48:35 +0000 Subject: ProfileManager: changed warning level to w4 git-svn-id: http://svn.miranda-ng.org/main/trunk@11549 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/ProfileManager/pmanagerEx_12.vcxproj | 8 ++++---- plugins/ProfileManager/src/pmanagerEx.cpp | 28 ++++++++++++++-------------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/plugins/ProfileManager/pmanagerEx_12.vcxproj b/plugins/ProfileManager/pmanagerEx_12.vcxproj index 1af7e32e7e..debbd0a203 100644 --- a/plugins/ProfileManager/pmanagerEx_12.vcxproj +++ b/plugins/ProfileManager/pmanagerEx_12.vcxproj @@ -81,7 +81,7 @@ true EnableFastChecks MultiThreadedDebugDLL - Level3 + Level4 EditAndContinue false Use @@ -107,7 +107,7 @@ _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) EnableFastChecks MultiThreadedDebugDLL - Level3 + Level4 false Use Common.h @@ -133,7 +133,7 @@ NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) true true - Level3 + Level4 false Use Common.h @@ -161,7 +161,7 @@ NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) true true - Level3 + Level4 false Use Common.h diff --git a/plugins/ProfileManager/src/pmanagerEx.cpp b/plugins/ProfileManager/src/pmanagerEx.cpp index 0db2b21155..d4d86defaa 100644 --- a/plugins/ProfileManager/src/pmanagerEx.cpp +++ b/plugins/ProfileManager/src/pmanagerEx.cpp @@ -17,7 +17,7 @@ There is no warranty. HINSTANCE hInst; int hLangpack; -PLUGININFOEX pluginInfo={ +PLUGININFOEX pluginInfo = { sizeof(PLUGININFOEX), __PLUGIN_NAME, PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM), @@ -28,17 +28,17 @@ PLUGININFOEX pluginInfo={ __AUTHORWEB, UNICODE_AWARE, // {7EEEB55E-9D83-4E1A-A12F-8F13F1A124FbB} - {0x7eeeb55e, 0x9d83, 0x4e1a, {0xa1, 0x2f, 0x8f, 0x13, 0xf1, 0xa1, 0x24, 0xfb}} + { 0x7eeeb55e, 0x9d83, 0x4e1a, { 0xa1, 0x2f, 0x8f, 0x13, 0xf1, 0xa1, 0x24, 0xfb } } }; -extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion) +extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD) { return &pluginInfo; } ///////////////////////////////////////////////////////////////////////////////////////// -BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) +BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD, LPVOID) { hInst = hinstDLL; return TRUE; @@ -46,7 +46,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) ///////////////////////////////////////////////////////////////////////////////////////// -static INT_PTR ChangePM(WPARAM wParam, LPARAM lParam) +static INT_PTR ChangePM(WPARAM, LPARAM) { TCHAR fn[MAX_PATH]; GetModuleFileName(GetModuleHandle(NULL), fn, SIZEOF(fn)); @@ -55,7 +55,7 @@ static INT_PTR ChangePM(WPARAM wParam, LPARAM lParam) return 0; } -static INT_PTR LoadPM(WPARAM wParam, LPARAM lParam) +static INT_PTR LoadPM(WPARAM, LPARAM) { TCHAR fn[MAX_PATH]; GetModuleFileName(GetModuleHandle(NULL), fn, SIZEOF(fn)); @@ -63,12 +63,12 @@ static INT_PTR LoadPM(WPARAM wParam, LPARAM lParam) return 0; } -static INT_PTR CheckDb(WPARAM wParam, LPARAM lParam) +static INT_PTR CheckDb(WPARAM, LPARAM) { - if (MessageBox( 0, TranslateT("Miranda NG will exit and Database checker will start.\n\nAre you sure you want to do this?"), TranslateT("Check Database"), MB_ICONWARNING | MB_YESNO | MB_DEFBUTTON2 ) == IDYES) { + if (MessageBox(0, TranslateT("Miranda NG will exit and Database checker will start.\n\nAre you sure you want to do this?"), TranslateT("Check Database"), MB_ICONWARNING | MB_YESNO | MB_DEFBUTTON2) == IDYES) { TCHAR mirandaPath[MAX_PATH], cmdLine[100]; PROCESS_INFORMATION pi; - STARTUPINFO si = {0}; + STARTUPINFO si = { 0 }; si.cb = sizeof(si); GetModuleFileName(NULL, mirandaPath, SIZEOF(mirandaPath)); mir_sntprintf(cmdLine, SIZEOF(cmdLine), _T("\"%s\" /restart:%d /svc:dbchecker"), mirandaPath, GetCurrentProcessId()); @@ -78,7 +78,7 @@ static INT_PTR CheckDb(WPARAM wParam, LPARAM lParam) return 0; } -static INT_PTR RestartMe(WPARAM wParam, LPARAM lParam) +static INT_PTR RestartMe(WPARAM, LPARAM) { CallService(MS_SYSTEM_RESTART, 1, 0); return 0; @@ -86,10 +86,10 @@ static INT_PTR RestartMe(WPARAM wParam, LPARAM lParam) static IconItem iconList[] = { - { LPGEN("Load profile"), SRV_LOAD_PM, IDI_LoadPM }, - { LPGEN("Change profile"), SRV_CHANGE_PM, IDI_ChangePM }, - { LPGEN("Check database"), SRV_CHECK_DB, IDI_Dbchecker }, - { LPGEN("Restart"), SRV_RESTART_ME, IDI_Restart } + { LPGEN("Load profile"), SRV_LOAD_PM, IDI_LoadPM }, + { LPGEN("Change profile"), SRV_CHANGE_PM, IDI_ChangePM }, + { LPGEN("Check database"), SRV_CHECK_DB, IDI_Dbchecker }, + { LPGEN("Restart"), SRV_RESTART_ME, IDI_Restart } }; static int OnModulesLoaded(WPARAM, LPARAM) -- cgit v1.2.3