From 02899659835bd6352f42a90a344b1de896f6a6a8 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Fri, 12 Dec 2014 18:28:12 +0000 Subject: SpellChecker: changed warning lavel to w4 git-svn-id: http://svn.miranda-ng.org/main/trunk@11354 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/SpellChecker/src/utils.cpp | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'plugins/SpellChecker/src/utils.cpp') diff --git a/plugins/SpellChecker/src/utils.cpp b/plugins/SpellChecker/src/utils.cpp index 060f05804a..b7a2dc4018 100644 --- a/plugins/SpellChecker/src/utils.cpp +++ b/plugins/SpellChecker/src/utils.cpp @@ -707,7 +707,7 @@ int GetClosestLanguage(TCHAR *lang_name) if (p == NULL) continue; - int prefix_len = p - languages[i]->language; + size_t prefix_len = p - languages[i]->language; if (prefix_len != len) continue; @@ -867,7 +867,7 @@ void ModifyIcon(Dialog *dlg) } } -INT_PTR AddContactTextBoxService(WPARAM wParam, LPARAM lParam) +INT_PTR AddContactTextBoxService(WPARAM wParam, LPARAM) { SPELLCHECKER_ITEM *sci = (SPELLCHECKER_ITEM *)wParam; if (sci == NULL || sci->cbSize != sizeof(SPELLCHECKER_ITEM)) @@ -947,7 +947,7 @@ void FreePopupData(Dialog *dlg) } } -INT_PTR RemoveContactTextBoxService(WPARAM wParam, LPARAM lParam) +INT_PTR RemoveContactTextBoxService(WPARAM wParam, LPARAM) { HWND hwnd = (HWND)wParam; if (hwnd == NULL) @@ -1149,8 +1149,6 @@ void AddItemsToMenu(Dialog *dlg, HMENU hMenu, POINT pt, HWND hwndOwner) menus[hwndOwner] = dlg; } - BOOL wrong_word = FALSE; - // Make menu if (GetMenuItemCount(hMenu) > 0) InsertMenu(hMenu, 0, MF_BYPOSITION | MF_SEPARATOR, 0, 0); @@ -1283,7 +1281,7 @@ BOOL HandleMenuSelection(Dialog *dlg, POINT pt, unsigned selection) return ret; } -int MsgWindowPopup(WPARAM wParam, LPARAM lParam) +int MsgWindowPopup(WPARAM, LPARAM lParam) { MessageWindowPopupData *mwpd = (MessageWindowPopupData *)lParam; if (mwpd == NULL || mwpd->cbSize < sizeof(MessageWindowPopupData) || mwpd->uFlags != MSG_WINDOWPOPUP_INPUT) @@ -1306,7 +1304,7 @@ int MsgWindowPopup(WPARAM wParam, LPARAM lParam) return 0; } -INT_PTR ShowPopupMenuService(WPARAM wParam, LPARAM lParam) +INT_PTR ShowPopupMenuService(WPARAM wParam, LPARAM) { SPELLCHECKER_POPUPMENU *scp = (SPELLCHECKER_POPUPMENU *)wParam; if (scp == NULL || scp->cbSize != sizeof(SPELLCHECKER_POPUPMENU)) @@ -1354,7 +1352,7 @@ int ShowPopupMenu(HWND hwnd, HMENU hMenu, POINT pt, HWND hwndOwner) return selection; } -int MsgWindowEvent(WPARAM wParam, LPARAM lParam) +int MsgWindowEvent(WPARAM, LPARAM lParam) { MessageWindowEventData *event = (MessageWindowEventData *)lParam; if (event == NULL) @@ -1437,8 +1435,6 @@ LRESULT CALLBACK MenuWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) if (dlgit == menus.end()) return -1; - Dialog *dlg = dlgit->second; - switch (msg) { case WM_INITMENUPOPUP: { -- cgit v1.2.3