summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2015-08-10 21:09:08 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2015-08-10 21:09:08 +0000
commit95d8d4c224de772a494b3c658c8b8990c577d173 (patch)
tree27911114534fb31df1ba19d50ca69b98f6fa7e9e /plugins
parent7f5cb4c7fc462ff993c4e80612db551484a5e875 (diff)
Variables:
- warning fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@14902 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Variables/src/enumprocs.cpp2
-rw-r--r--plugins/Variables/src/help.cpp20
-rw-r--r--plugins/Variables/src/main.cpp2
-rw-r--r--plugins/Variables/src/parse_math.cpp2
-rw-r--r--plugins/Variables/src/parse_system.cpp2
-rw-r--r--plugins/Variables/src/tokenregister.cpp4
-rw-r--r--plugins/Variables/src/variables.cpp2
7 files changed, 15 insertions, 19 deletions
diff --git a/plugins/Variables/src/enumprocs.cpp b/plugins/Variables/src/enumprocs.cpp
index 71ecd780ac..be34fab55f 100644
--- a/plugins/Variables/src/enumprocs.cpp
+++ b/plugins/Variables/src/enumprocs.cpp
@@ -44,8 +44,6 @@ typedef struct {
BOOL WINAPI EnumProcs(PROCENUMPROC lpProc, LPARAM lParam)
{
- LPDWORD lpdwPIDs = NULL;
-
// Retrieve the OS version
OSVERSIONINFO osver;
osver.dwOSVersionInfoSize = sizeof(osver);
diff --git a/plugins/Variables/src/help.cpp b/plugins/Variables/src/help.cpp
index 2077353901..cb6a2d28ac 100644
--- a/plugins/Variables/src/help.cpp
+++ b/plugins/Variables/src/help.cpp
@@ -37,7 +37,7 @@ static HWND hwndHelpDialog = NULL;
static HICON hHelpIcon = NULL;
-static int defaultHelpDialogResize(HWND hwndDlg, LPARAM lParam, UTILRESIZECONTROL *urc) {
+static int defaultHelpDialogResize(HWND, LPARAM, UTILRESIZECONTROL *urc) {
switch(urc->wId) {
case IDC_ABOUT:
@@ -101,7 +101,7 @@ void ResetCList(HWND hwndDlg)
SendDlgItemMessage(hwndDlg, IDC_CLIST, CLM_SETHIDEEMPTYGROUPS, 1, 0);
}
-static int clistDialogResize(HWND hwndDlg, LPARAM lParam, UTILRESIZECONTROL *urc)
+static int clistDialogResize(HWND, LPARAM, UTILRESIZECONTROL *urc)
{
switch (urc->wId) {
case IDC_ABOUT:
@@ -222,7 +222,6 @@ static TCHAR *getTokenCategory(TOKENREGISTEREX *tr) {
if (tr == NULL) {
return NULL;
}
- char *cat = NULL;
char *helpText = mir_strdup(tr->szHelpText);
if (helpText == NULL) {
return NULL;
@@ -320,7 +319,7 @@ static TCHAR *getTokenDescription(TOKENREGISTEREX *tr)
return desc;
}
-static int CALLBACK compareTokenHelp(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort)
+static int CALLBACK compareTokenHelp(LPARAM lParam1, LPARAM lParam2, LPARAM)
{
TOKENREGISTEREX *tr1 = (TOKENREGISTEREX *)lParam1;
TOKENREGISTEREX *tr2 = (TOKENREGISTEREX *)lParam2;
@@ -342,7 +341,7 @@ static int CALLBACK compareTokenHelp(LPARAM lParam1, LPARAM lParam2, LPARAM lPar
return mir_tstrcmp(tr1->tszTokenString, tr2->tszTokenString);
}
-static BOOL CALLBACK processTokenListMessage(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam)
+static BOOL CALLBACK processTokenListMessage(HWND hwndDlg, UINT msg, WPARAM, LPARAM lParam)
{
/* hwndDlg must be a child of the help dialog */
switch(msg) {
@@ -553,7 +552,7 @@ struct INPUTDLGDATA
static int iFrameX, iFrameY;
-static int inputDialogResize(HWND hwndDlg, LPARAM lParam, UTILRESIZECONTROL *urc)
+static int inputDialogResize(HWND, LPARAM lParam, UTILRESIZECONTROL *urc)
{
INPUTDLGDATA *dat = (INPUTDLGDATA *)lParam;
@@ -735,7 +734,7 @@ static INT_PTR CALLBACK inputDlgProc(HWND hwndDlg,UINT msg,WPARAM wParam,LPARAM
}
// help info dialog
-static INT_PTR CALLBACK helpInfoDlgProc(HWND hwndDlg,UINT msg,WPARAM wParam,LPARAM lParam)
+static INT_PTR CALLBACK helpInfoDlgProc(HWND hwndDlg,UINT msg,WPARAM,LPARAM)
{
switch(msg) {
case WM_INITDIALOG:
@@ -755,9 +754,8 @@ static INT_PTR CALLBACK helpInfoDlgProc(HWND hwndDlg,UINT msg,WPARAM wParam,LPAR
}
// the parent page (tabs)
-static int helpDialogResize(HWND hwndDlg, LPARAM lParam, UTILRESIZECONTROL *urc)
+static int helpDialogResize(HWND, LPARAM, UTILRESIZECONTROL *urc)
{
- INPUTDLGDATA *dat = (INPUTDLGDATA *)lParam;
switch(urc->wId) {
case IDC_OK:
case IDC_CANCEL:
@@ -1162,7 +1160,7 @@ INT_PTR showHelpService(WPARAM wParam, LPARAM lParam)
return showHelpExService(0, (LPARAM)vhs);
}
-INT_PTR getSkinItemService(WPARAM wParam, LPARAM lParam)
+INT_PTR getSkinItemService(WPARAM, LPARAM lParam)
{
int item = lParam;
if (item == 0)
@@ -1181,7 +1179,7 @@ INT_PTR getSkinItemService(WPARAM wParam, LPARAM lParam)
return (INT_PTR)NULL;
}
-int iconsChanged(WPARAM wParam, LPARAM lParam)
+int iconsChanged(WPARAM, LPARAM)
{
hHelpIcon = NULL;
return 0;
diff --git a/plugins/Variables/src/main.cpp b/plugins/Variables/src/main.cpp
index 2a561a9b8c..18487b361d 100644
--- a/plugins/Variables/src/main.cpp
+++ b/plugins/Variables/src/main.cpp
@@ -22,7 +22,7 @@ CLIST_INTERFACE *pcli;
HINSTANCE hInst;
int hLangpack = 0;
-BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
+BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD, LPVOID)
{
hInst = hinstDLL;
return TRUE;
diff --git a/plugins/Variables/src/parse_math.cpp b/plugins/Variables/src/parse_math.cpp
index ee7490686a..1308f805e2 100644
--- a/plugins/Variables/src/parse_math.cpp
+++ b/plugins/Variables/src/parse_math.cpp
@@ -158,7 +158,7 @@ static TCHAR *parseNum(ARGUMENTSINFO *ai)
return res;
}
-static TCHAR *parseRand(ARGUMENTSINFO *ai)
+static TCHAR *parseRand(ARGUMENTSINFO *)
{
return itot(rand());
}
diff --git a/plugins/Variables/src/parse_system.cpp b/plugins/Variables/src/parse_system.cpp
index 4414a8b860..df01089e48 100644
--- a/plugins/Variables/src/parse_system.cpp
+++ b/plugins/Variables/src/parse_system.cpp
@@ -421,7 +421,7 @@ static TCHAR *parseListDir(ARGUMENTSINFO *ai)
}
#ifndef WINE
-static BOOL CALLBACK MyProcessEnumerator(DWORD dwPID, WORD wTask, char *szProcess, LPARAM lParam)
+static BOOL CALLBACK MyProcessEnumerator(DWORD, WORD, char *szProcess, LPARAM lParam)
{
char **szProc = (char **)lParam;
if ((*szProc != NULL) && (!_stricmp(*szProc, szProcess)))
diff --git a/plugins/Variables/src/tokenregister.cpp b/plugins/Variables/src/tokenregister.cpp
index 3cf79cb4f1..2e6bc5fd80 100644
--- a/plugins/Variables/src/tokenregister.cpp
+++ b/plugins/Variables/src/tokenregister.cpp
@@ -96,7 +96,7 @@ int deRegisterToken(TCHAR *token)
return 0;
}
-INT_PTR registerToken(WPARAM wParam, LPARAM lParam)
+INT_PTR registerToken(WPARAM, LPARAM lParam)
{
DWORD hash;
int idx;
@@ -164,7 +164,7 @@ TCHAR *parseFromRegister(ARGUMENTSINFO *ai)
return NULL;
INT_PTR callRes = 0;
- TCHAR *temp = NULL, *res = NULL;
+ TCHAR *res = NULL;
mir_cslock lck(csRegister);
diff --git a/plugins/Variables/src/variables.cpp b/plugins/Variables/src/variables.cpp
index a481702145..7eac85270e 100644
--- a/plugins/Variables/src/variables.cpp
+++ b/plugins/Variables/src/variables.cpp
@@ -381,7 +381,7 @@ static TCHAR* replaceDynVars(TCHAR* szTemplate, FORMATINFO* fi)
/*
MS_VARS_FORMATSTRING
*/
-static INT_PTR formatStringService(WPARAM wParam, LPARAM lParam)
+static INT_PTR formatStringService(WPARAM wParam, LPARAM)
{
INT_PTR res;
int i;