summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2014-12-21 07:48:35 +0000
committerKirill Volinsky <mataes2007@gmail.com>2014-12-21 07:48:35 +0000
commitb2ba573600e650273800774c7fad23268019a353 (patch)
treec880a7c36510d52473e1fdcb221040f694f7b218 /plugins
parent781eda3739ffc8541dae20800891682b8b443ce8 (diff)
ProfileManager: changed warning level to w4
git-svn-id: http://svn.miranda-ng.org/main/trunk@11549 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/ProfileManager/pmanagerEx_12.vcxproj8
-rw-r--r--plugins/ProfileManager/src/pmanagerEx.cpp28
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 @@
<MinimalRebuild>true</MinimalRebuild>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <WarningLevel>Level3</WarningLevel>
+ <WarningLevel>Level4</WarningLevel>
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
<ExceptionHandling>false</ExceptionHandling>
<PrecompiledHeader>Use</PrecompiledHeader>
@@ -107,7 +107,7 @@
<PreprocessorDefinitions>_DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <WarningLevel>Level3</WarningLevel>
+ <WarningLevel>Level4</WarningLevel>
<ExceptionHandling>false</ExceptionHandling>
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>Common.h</PrecompiledHeaderFile>
@@ -133,7 +133,7 @@
<PreprocessorDefinitions>NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<StringPooling>true</StringPooling>
<FunctionLevelLinking>true</FunctionLevelLinking>
- <WarningLevel>Level3</WarningLevel>
+ <WarningLevel>Level4</WarningLevel>
<ExceptionHandling>false</ExceptionHandling>
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>Common.h</PrecompiledHeaderFile>
@@ -161,7 +161,7 @@
<PreprocessorDefinitions>NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<StringPooling>true</StringPooling>
<FunctionLevelLinking>true</FunctionLevelLinking>
- <WarningLevel>Level3</WarningLevel>
+ <WarningLevel>Level4</WarningLevel>
<ExceptionHandling>false</ExceptionHandling>
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>Common.h</PrecompiledHeaderFile>
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)