summaryrefslogtreecommitdiff
path: root/plugins/TopToolBar/src
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2015-08-10 21:16:34 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2015-08-10 21:16:34 +0000
commit7196463c057555a935707304b48e0a2ab2ea3443 (patch)
tree3cef64ade4703d5656c22ed9933c193730b7fc13 /plugins/TopToolBar/src
parent95d8d4c224de772a494b3c658c8b8990c577d173 (diff)
TopToolBar:
- warning fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@14903 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TopToolBar/src')
-rw-r--r--plugins/TopToolBar/src/InternalButtons.cpp10
-rw-r--r--plugins/TopToolBar/src/main.cpp4
-rw-r--r--plugins/TopToolBar/src/stdafx.h1
-rw-r--r--plugins/TopToolBar/src/toolbar.cpp2
-rw-r--r--plugins/TopToolBar/src/toolbarwnd.cpp2
-rw-r--r--plugins/TopToolBar/src/ttbopt.cpp3
6 files changed, 11 insertions, 11 deletions
diff --git a/plugins/TopToolBar/src/InternalButtons.cpp b/plugins/TopToolBar/src/InternalButtons.cpp
index c7b5f0a36f..949a0f032e 100644
--- a/plugins/TopToolBar/src/InternalButtons.cpp
+++ b/plugins/TopToolBar/src/InternalButtons.cpp
@@ -61,7 +61,7 @@ int OnSettingChanging(WPARAM hContact, LPARAM lParam)
return 0;
}
-INT_PTR TTBInternalMainMenuButt(WPARAM wParam, LPARAM lParam)
+INT_PTR TTBInternalMainMenuButt(WPARAM, LPARAM)
{
POINT pt;
GetCursorPos(&pt);
@@ -69,7 +69,7 @@ INT_PTR TTBInternalMainMenuButt(WPARAM wParam, LPARAM lParam)
return 0;
}
-INT_PTR TTBInternalStatusMenuButt(WPARAM wParam, LPARAM lParam)
+INT_PTR TTBInternalStatusMenuButt(WPARAM, LPARAM)
{
POINT pt;
GetCursorPos(&pt);
@@ -77,7 +77,7 @@ INT_PTR TTBInternalStatusMenuButt(WPARAM wParam, LPARAM lParam)
return 0;
}
-INT_PTR TTBInternalGroupShowHide(WPARAM wParam, LPARAM lParam)
+INT_PTR TTBInternalGroupShowHide(WPARAM, LPARAM)
{
int newVal = !(GetWindowLongPtr(hwndContactTree, GWL_STYLE) & CLS_USEGROUPS);
db_set_b(NULL, "CList", "UseGroups", (BYTE)newVal);
@@ -85,14 +85,14 @@ INT_PTR TTBInternalGroupShowHide(WPARAM wParam, LPARAM lParam)
return 0;
}
-INT_PTR TTBInternalSoundsOnOff(WPARAM wParam, LPARAM lParam)
+INT_PTR TTBInternalSoundsOnOff(WPARAM, LPARAM)
{
int newVal = !(db_get_b(NULL, "Skin", "UseSound", 1));
db_set_b(NULL, "Skin", "UseSound", (BYTE)newVal);
return 0;
}
-INT_PTR TTBInternalShowHideOffline(WPARAM wParam, LPARAM lParam)
+INT_PTR TTBInternalShowHideOffline(WPARAM, LPARAM)
{
CallService(MS_CLIST_SETHIDEOFFLINE, -1, 0);
return 0;
diff --git a/plugins/TopToolBar/src/main.cpp b/plugins/TopToolBar/src/main.cpp
index 4326704b39..f6470e244e 100644
--- a/plugins/TopToolBar/src/main.cpp
+++ b/plugins/TopToolBar/src/main.cpp
@@ -20,7 +20,7 @@ PLUGININFOEX pluginInfo =
{0xf593c752, 0x51d8, 0x4d46, {0xba, 0x27, 0x37, 0x57, 0x79, 0x53, 0xf5, 0x5c}}
};
-extern "C" __declspec(dllexport) PLUGININFOEX *MirandaPluginInfoEx(DWORD mirandaVersion)
+extern "C" __declspec(dllexport) PLUGININFOEX *MirandaPluginInfoEx(DWORD)
{
return &pluginInfo;
}
@@ -46,7 +46,7 @@ extern "C" int __declspec(dllexport) Unload(void)
/////////////////////////////////////////////////////////////////////////////////////////
-BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
+BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD, LPVOID)
{
hInst = hinstDLL;
return TRUE;
diff --git a/plugins/TopToolBar/src/stdafx.h b/plugins/TopToolBar/src/stdafx.h
index 6c11502295..956053a9d2 100644
--- a/plugins/TopToolBar/src/stdafx.h
+++ b/plugins/TopToolBar/src/stdafx.h
@@ -144,6 +144,5 @@ void DeleteSeparator(int i);
void DeleteLBut(int i);
void InsertLBut(int i);
-int OnModulesLoad(WPARAM, LPARAM);
#endif \ No newline at end of file
diff --git a/plugins/TopToolBar/src/toolbar.cpp b/plugins/TopToolBar/src/toolbar.cpp
index e5697a5583..3d9e737351 100644
--- a/plugins/TopToolBar/src/toolbar.cpp
+++ b/plugins/TopToolBar/src/toolbar.cpp
@@ -358,7 +358,7 @@ INT_PTR TTBSetState(WPARAM wParam, LPARAM lParam)
// wparam = hTTBButton
// lparam = 0
//return = state
-INT_PTR TTBGetState(WPARAM wParam, LPARAM lParam)
+INT_PTR TTBGetState(WPARAM wParam, LPARAM)
{
mir_cslock lck(csButtonsHook);
TopButtonInt *b = idtopos(wParam);
diff --git a/plugins/TopToolBar/src/toolbarwnd.cpp b/plugins/TopToolBar/src/toolbarwnd.cpp
index 96aa552252..bb3cc61918 100644
--- a/plugins/TopToolBar/src/toolbarwnd.cpp
+++ b/plugins/TopToolBar/src/toolbarwnd.cpp
@@ -239,7 +239,7 @@ LRESULT CALLBACK TopToolBarProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPara
/////////////////////////////////////////////////////////////////////////////////////////
-INT_PTR OnEventFire(WPARAM wParam, LPARAM lParam)
+INT_PTR OnEventFire(WPARAM wParam, LPARAM)
{
CallService(MS_SYSTEM_REMOVEWAIT, wParam, 0);
CloseHandle((HANDLE)wParam);
diff --git a/plugins/TopToolBar/src/ttbopt.cpp b/plugins/TopToolBar/src/ttbopt.cpp
index cddeaad2f6..fd2e528c75 100644
--- a/plugins/TopToolBar/src/ttbopt.cpp
+++ b/plugins/TopToolBar/src/ttbopt.cpp
@@ -23,6 +23,7 @@ static HTREEITEM AddLine(HWND hTree,TopButtonInt *b, HTREEITEM hItem, HIMAGELIST
if (b->dwFlags & TTBBF_ISSEPARATOR) {
tvis.item.pszText = _T("------------------");
index = -1;
+ tmp = 0;
}
else {
if (b->hIconHandleUp) {
@@ -539,7 +540,7 @@ static INT_PTR CALLBACK ButOrderOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPAR
/////////////////////////////////////////////////////////////////////////////////////////
-int TTBOptInit(WPARAM wParam, LPARAM lParam)
+int TTBOptInit(WPARAM wParam, LPARAM)
{
OPTIONSDIALOGPAGE odp = { 0 };
odp.hInstance = hInst;