diff options
author | George Hazan <george.hazan@gmail.com> | 2015-08-11 15:39:23 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-08-11 15:39:23 +0000 |
commit | 2548065ebc5da2a8778cd4f49343b847773ee174 (patch) | |
tree | 642d6b05a1ada0df9803ddf55faa3e709920afef /plugins/TrafficCounter | |
parent | eb031473db62a4fac910f7cb2d13765a753df92d (diff) |
'unreferenced formal parameter' warnings fixed
git-svn-id: http://svn.miranda-ng.org/main/trunk@14913 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TrafficCounter')
-rw-r--r-- | plugins/TrafficCounter/src/TrafficCounter.cpp | 24 | ||||
-rw-r--r-- | plugins/TrafficCounter/src/options.cpp | 2 | ||||
-rw-r--r-- | plugins/TrafficCounter/src/opttree.cpp | 2 | ||||
-rw-r--r-- | plugins/TrafficCounter/src/statistics.cpp | 5 |
4 files changed, 16 insertions, 17 deletions
diff --git a/plugins/TrafficCounter/src/TrafficCounter.cpp b/plugins/TrafficCounter/src/TrafficCounter.cpp index 511e6d5266..9a61516f8c 100644 --- a/plugins/TrafficCounter/src/TrafficCounter.cpp +++ b/plugins/TrafficCounter/src/TrafficCounter.cpp @@ -114,12 +114,12 @@ PLUGININFOEX pluginInfoEx = {0x82181510, 0x5dfa, 0x49d7, {0xb4, 0x69, 0x33, 0x87, 0x1e, 0x2a, 0xe8, 0xb5}}
};
-extern "C" __declspec(dllexport) PLUGININFOEX *MirandaPluginInfoEx(DWORD mirandaVersion)
+extern "C" __declspec(dllexport) PLUGININFOEX *MirandaPluginInfoEx(DWORD)
{
return &pluginInfoEx;
}
-BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
+BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD, LPVOID)
{
hInst = hinstDLL;
DisableThreadLibraryCalls(hInst);
@@ -157,7 +157,7 @@ extern "C" int __declspec(dllexport) Unload(void) return 0;
}
-int TrafficCounterShutdown(WPARAM wParam, LPARAM lParam)
+int TrafficCounterShutdown(WPARAM, LPARAM)
{
KillTimer(TrafficHwnd, TIMER_REDRAW);
KillTimer(TrafficHwnd, TIMER_NOTIFY_TICK);
@@ -185,7 +185,7 @@ int TrafficCounterShutdown(WPARAM wParam, LPARAM lParam) return 0;
}
-int ModuleLoad(WPARAM wParam, LPARAM lParam)
+int ModuleLoad(WPARAM, LPARAM)
{
bPopupExists = ServiceExists(MS_POPUP_ADDPOPUPT);
bVariablesExists = ServiceExists(MS_VARS_FORMATSTRING) && ServiceExists(MS_VARS_REGISTERTOKEN);
@@ -193,7 +193,7 @@ int ModuleLoad(WPARAM wParam, LPARAM lParam) return 0;
}
-int TrafficCounterModulesLoaded(WPARAM wParam, LPARAM lParam)
+int TrafficCounterModulesLoaded(WPARAM, LPARAM)
{
DBVARIANT dbv;
@@ -370,7 +370,7 @@ int TrafficSend(WPARAM wParam, LPARAM lParam) return 0;
}
-int TrafficCounter_PaintCallbackProc(HWND hWnd, HDC hDC, RECT * rcPaint, HRGN rgn, DWORD dFlags, void * CallBackData)
+int TrafficCounter_PaintCallbackProc(HWND hWnd, HDC hDC, RECT*, HRGN, DWORD, void*)
{
return TrafficCounter_Draw(hWnd, hDC);
}
@@ -1033,7 +1033,7 @@ void CreateTrafficWindow(HWND hCluiWnd) UpdateNotifyTimer();
}
-INT_PTR MenuCommand_TrafficShowHide(WPARAM wParam, LPARAM lParam)
+INT_PTR MenuCommand_TrafficShowHide(WPARAM, LPARAM)
{
unOptions.FrameIsVisible = !unOptions.FrameIsVisible;
if (Traffic_FrameID == NULL)
@@ -1150,7 +1150,7 @@ void DestroyProtocolList(void) mir_free(ProtoList);
}
-int ProtocolAckHook(WPARAM wParam, LPARAM lParam)
+int ProtocolAckHook(WPARAM, LPARAM lParam)
{
ACKDATA* pAck = (ACKDATA*)lParam;
WORD i;
@@ -1178,7 +1178,7 @@ int ProtocolAckHook(WPARAM wParam, LPARAM lParam) return 0;
}
-int UpdateFonts(WPARAM wParam, LPARAM lParam)
+int UpdateFonts(WPARAM, LPARAM)
{
LOGFONT logfont;
//if no font service
@@ -1208,11 +1208,9 @@ void UpdateTrafficWindowSize(void) unsigned short int TrafficWindowHeight(void)
{
- BYTE HeightLineTime = (unOptions.DrawProtoIcon) ? 16 : TrafficFontHeight,
- i, ActProto;
- WORD MaxWndHeight;
+ int ActProto, MaxWndHeight;
- for (i = 0, ActProto = unOptions.ShowOverall + unOptions.ShowSummary; i < NumberOfAccounts; i++)
+ for (int i = 0, ActProto = unOptions.ShowOverall + unOptions.ShowSummary; i < NumberOfAccounts; i++)
ActProto += ProtoList[i].Visible && ProtoList[i].Enabled;
// Высота строки минимум 16 пикселей (для иконки).
diff --git a/plugins/TrafficCounter/src/options.cpp b/plugins/TrafficCounter/src/options.cpp index 449ef3b315..3a4c6e8532 100644 --- a/plugins/TrafficCounter/src/options.cpp +++ b/plugins/TrafficCounter/src/options.cpp @@ -339,7 +339,7 @@ static INT_PTR CALLBACK DlgProcTCOptions(HWND hwndDlg, UINT msg, WPARAM wParam, return 0;
}
-int TrafficCounterOptInitialise(WPARAM wParam,LPARAM lParam)
+int TrafficCounterOptInitialise(WPARAM wParam, LPARAM)
{
// Main options page
OPTIONSDIALOGPAGE odp = { 0 };
diff --git a/plugins/TrafficCounter/src/opttree.cpp b/plugins/TrafficCounter/src/opttree.cpp index 8189b5d7f5..09447b2c85 100644 --- a/plugins/TrafficCounter/src/opttree.cpp +++ b/plugins/TrafficCounter/src/opttree.cpp @@ -159,7 +159,7 @@ HTREEITEM OptTree_AddItem(HWND hwndTree, TCHAR *name, LPARAM lParam, int iconInd return result;
}
-BOOL OptTree_ProcessMessage(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam, BOOL *result, int idcTree, OPTTREE_OPTION *options, int optionCount)
+BOOL OptTree_ProcessMessage(HWND hwnd, UINT msg, WPARAM, LPARAM lparam, BOOL*, int idcTree, OPTTREE_OPTION *options, int optionCount)
{
enum { IMG_GROUP, IMG_CHECK, IMG_NOCHECK, IMG_RCHECK, IMG_NORCHECK, IMG_GRPOPEN, IMG_GRPCLOSED };
diff --git a/plugins/TrafficCounter/src/statistics.cpp b/plugins/TrafficCounter/src/statistics.cpp index d8ef8fac80..511b6344b5 100644 --- a/plugins/TrafficCounter/src/statistics.cpp +++ b/plugins/TrafficCounter/src/statistics.cpp @@ -298,7 +298,7 @@ void Stat_ReadFile(BYTE n) LARGE_INTEGER Size;
DWORD BytesRead;
TCHAR FileName[MAX_PATH], *pszPath;
- SYSTEMTIME stNow, stLast = { 0 };
+ SYSTEMTIME stNow;
pszPath = Utils_ReplaceVarsT(_T("%miranda_userdata%\\statistics"));
CreateDirectoryTreeT(pszPath);
@@ -608,7 +608,8 @@ DWORD Stat_GetItemValue(WORD SelectedAccs, BYTE Interval, DWORD ItemNum, BYTE Su }
IndexM++; IndexP++; // Переходим к следующей записи.
- if (IndexM == ProtoList[a].NumberOfRecords) break;
+ if (IndexM == ProtoList[a].NumberOfRecords)
+ break;
// Когда остановиться?
switch (Interval) {
|