From c853aaab25885ec145e5e8a9500c269192baf6e4 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 14 Dec 2014 19:35:28 +0000 Subject: MSN: warning level 4 git-svn-id: http://svn.miranda-ng.org/main/trunk@11422 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/MSN/src/ezxml.c | 2 ++ protocols/MSN/src/msn.cpp | 6 +++--- protocols/MSN/src/msn_auth.cpp | 1 - protocols/MSN/src/msn_commands.cpp | 2 -- protocols/MSN/src/msn_http.cpp | 4 ++-- protocols/MSN/src/msn_misc.cpp | 7 +++---- protocols/MSN/src/msn_opts.cpp | 4 ++-- protocols/MSN/src/msn_p2p.cpp | 1 - protocols/MSN/src/msn_proto.cpp | 34 +++++++++++++++++----------------- protocols/MSN/src/msn_proto.h | 2 +- protocols/MSN/src/msn_svcs.cpp | 24 ++++++++++++------------ 11 files changed, 42 insertions(+), 45 deletions(-) (limited to 'protocols/MSN/src') diff --git a/protocols/MSN/src/ezxml.c b/protocols/MSN/src/ezxml.c index 41ef70598e..6f13194177 100644 --- a/protocols/MSN/src/ezxml.c +++ b/protocols/MSN/src/ezxml.c @@ -42,6 +42,8 @@ #define SIZE_MAX UINT_MAX #endif +#pragma warning(disable:4706) + #define EZXML_WS "\t\r\n " // whitespace #define EZXML_ERRL 128 // maximum error string length diff --git a/protocols/MSN/src/msn.cpp b/protocols/MSN/src/msn.cpp index 1dc588393d..d12430d914 100644 --- a/protocols/MSN/src/msn.cpp +++ b/protocols/MSN/src/msn.cpp @@ -70,7 +70,7 @@ OBJLIST g_Instances(1, sttCompareProtocols); ///////////////////////////////////////////////////////////////////////////////////////// // Main DLL function -extern "C" BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) +extern "C" BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID) { if (fdwReason == DLL_PROCESS_ATTACH) { hInst = hinstDLL; @@ -82,7 +82,7 @@ extern "C" BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvRe ///////////////////////////////////////////////////////////////////////////////////////// // OnModulesLoaded - finalizes plugin's configuration on load -static int OnModulesLoaded(WPARAM wParam, LPARAM lParam) +static int OnModulesLoaded(WPARAM, LPARAM) { avsPresent = ServiceExists(MS_AV_SETMYAVATART) != 0; @@ -140,7 +140,7 @@ extern "C" int __declspec(dllexport) Unload(void) ///////////////////////////////////////////////////////////////////////////////////////// // MirandaPluginInfoEx - returns an information about a plugin -extern "C" __declspec(dllexport) const PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion) +extern "C" __declspec(dllexport) const PLUGININFOEX* MirandaPluginInfoEx(DWORD) { return &pluginInfo; } diff --git a/protocols/MSN/src/msn_auth.cpp b/protocols/MSN/src/msn_auth.cpp index 54b41e6989..c64e686fdf 100644 --- a/protocols/MSN/src/msn_auth.cpp +++ b/protocols/MSN/src/msn_auth.cpp @@ -412,7 +412,6 @@ CMStringA CMsnProto::HotmailLogin(const char* url) unsigned char nonce[24]; CallService(MS_UTILS_GETRANDOM, sizeof(nonce), (LPARAM)nonce); - const size_t hotSecretlen = strlen(hotSecretToken); unsigned key1len; BYTE *key1 = (BYTE*)mir_base64_decode(hotSecretToken, &key1len); diff --git a/protocols/MSN/src/msn_commands.cpp b/protocols/MSN/src/msn_commands.cpp index 7086b0a042..ab9001d0c9 100644 --- a/protocols/MSN/src/msn_commands.cpp +++ b/protocols/MSN/src/msn_commands.cpp @@ -110,7 +110,6 @@ void CMsnProto::MSN_InviteMessage(ThreadData* info, char* msgBody, char* email, const char* IPAddress = tFileInfo["IP-Address"]; const char* IPAddressInt = tFileInfo["IP-Address-Internal"]; const char* Port = tFileInfo["Port"]; - const char* PortX = tFileInfo["PortX"]; const char* PortXInt = tFileInfo["PortX-Internal"]; const char* AuthCookie = tFileInfo["AuthCookie"]; const char* SessionID = tFileInfo["Session-ID"]; @@ -292,7 +291,6 @@ void CMsnProto::MSN_CustomSmiley(const char* msgBody, char* email, char* nick, i size_t slen = strlen(lastsml); ptrA buf(mir_base64_encode((PBYTE)lastsml, (unsigned)slen)); ptrA smileyName(mir_urlEncode(buf)); - int rlen = mir_strlen(buf); TCHAR path[MAX_PATH]; MSN_GetCustomSmileyFileName(hContact, path, SIZEOF(path), smileyName, iSmileyType); diff --git a/protocols/MSN/src/msn_http.cpp b/protocols/MSN/src/msn_http.cpp index 7077c66838..67200c11d0 100644 --- a/protocols/MSN/src/msn_http.cpp +++ b/protocols/MSN/src/msn_http.cpp @@ -36,7 +36,7 @@ static ThreadData* FindThreadConn(HANDLE hConn) // Fake function - it does nothing but confirms successful session initialization //======================================================================================= -int msn_httpGatewayInit(HANDLE hConn, NETLIBOPENCONNECTION* nloc, NETLIBHTTPREQUEST* nlhr) +int msn_httpGatewayInit(HANDLE hConn, NETLIBOPENCONNECTION*, NETLIBHTTPREQUEST*) { NETLIBHTTPPROXYINFO nlhpi = { 0 }; nlhpi.cbSize = sizeof(nlhpi); @@ -71,7 +71,7 @@ int msn_httpGatewayWrapSend(HANDLE hConn, PBYTE buf, int len, int flags, MIRANDA // SessionID & gateway IP values //======================================================================================= -PBYTE msn_httpGatewayUnwrapRecv(NETLIBHTTPREQUEST* nlhr, PBYTE buf, int len, int *outBufLen, void *(*NetlibRealloc)(void *, size_t)) +PBYTE msn_httpGatewayUnwrapRecv(NETLIBHTTPREQUEST* nlhr, PBYTE buf, int len, int *outBufLen, void *(*)(void *, size_t)) { *outBufLen = len; diff --git a/protocols/MSN/src/msn_misc.cpp b/protocols/MSN/src/msn_misc.cpp index 2474046216..a34a909d06 100644 --- a/protocols/MSN/src/msn_misc.cpp +++ b/protocols/MSN/src/msn_misc.cpp @@ -541,7 +541,7 @@ static ThreadData* FindThreadTimer(UINT timerId) return res; } -static VOID CALLBACK TypingTimerProc(HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime) +static VOID CALLBACK TypingTimerProc(HWND, UINT, UINT_PTR idEvent, DWORD) { ThreadData* T = FindThreadTimer(idEvent); if (T != NULL) @@ -775,7 +775,6 @@ static const char postdataS[] = "ct=%u&bver=7&id=73625&ru=%s&js=yes&pl=%%3Fid%%3 void CMsnProto::MsnInvokeMyURL(bool ismail, const char* url) { - char* hippy = NULL; if (!url) url = ismail ? "http://mail.live.com?rru=inbox" : "http://profile.live.com"; @@ -942,7 +941,7 @@ void CALLBACK sttMainThreadCallback(PVOID dwParam) CallService(MS_POPUP_ADDPOPUPCLASS, 0, (LPARAM)&ppd); } -void CMsnProto::MSN_ShowPopup(const TCHAR* nickname, const TCHAR* msg, int flags, const char* url, MCONTACT hContact) +void CMsnProto::MSN_ShowPopup(const TCHAR* nickname, const TCHAR* msg, int flags, const char* url) { if (Miranda_Terminated()) return; @@ -960,7 +959,7 @@ void CMsnProto::MSN_ShowPopup(const TCHAR* nickname, const TCHAR* msg, int flags void CMsnProto::MSN_ShowPopup(const MCONTACT hContact, const TCHAR* msg, int flags) { const TCHAR* nickname = hContact ? GetContactNameT(hContact) : _T("Me"); - MSN_ShowPopup(nickname, msg, flags, NULL, hContact); + MSN_ShowPopup(nickname, msg, flags, NULL); } diff --git a/protocols/MSN/src/msn_opts.cpp b/protocols/MSN/src/msn_opts.cpp index 5752917267..a69cff522b 100644 --- a/protocols/MSN/src/msn_opts.cpp +++ b/protocols/MSN/src/msn_opts.cpp @@ -614,7 +614,7 @@ INT_PTR CALLBACK DlgDeleteContactUI(HWND hwndDlg, UINT msg, WPARAM wParam, LPARA ///////////////////////////////////////////////////////////////////////////////////////// // Initialize options pages -int CMsnProto::OnOptionsInit(WPARAM wParam, LPARAM lParam) +int CMsnProto::OnOptionsInit(WPARAM wParam, LPARAM) { OPTIONSDIALOGPAGE odp = { sizeof(odp) }; odp.position = -790000000; @@ -646,7 +646,7 @@ int CMsnProto::OnOptionsInit(WPARAM wParam, LPARAM lParam) return 0; } -INT_PTR CMsnProto::SvcCreateAccMgrUI(WPARAM wParam, LPARAM lParam) +INT_PTR CMsnProto::SvcCreateAccMgrUI(WPARAM, LPARAM lParam) { return (INT_PTR)CreateDialogParam(hInst, MAKEINTRESOURCE(IDD_ACCMGRUI), (HWND)lParam, DlgProcAccMgrUI, (LPARAM)this); diff --git a/protocols/MSN/src/msn_p2p.cpp b/protocols/MSN/src/msn_p2p.cpp index 345a081f35..505facbd68 100644 --- a/protocols/MSN/src/msn_p2p.cpp +++ b/protocols/MSN/src/msn_p2p.cpp @@ -2129,7 +2129,6 @@ void CMsnProto::p2p_invite(unsigned iAppID, filetransfer* ft, const char *wlid) ft->p2p_sessionid = MSN_GenRandom(); ptrA szContextEnc(mir_base64_encode((PBYTE)pContext, (unsigned)cbContext)); - int cbContextEnc = mir_strlen(szContextEnc); MimeHeaders chdrs(10); chdrs.addString("EUF-GUID", szAppID); diff --git a/protocols/MSN/src/msn_proto.cpp b/protocols/MSN/src/msn_proto.cpp index c4a9461921..3e9adec7d7 100644 --- a/protocols/MSN/src/msn_proto.cpp +++ b/protocols/MSN/src/msn_proto.cpp @@ -248,7 +248,7 @@ MCONTACT __cdecl CMsnProto::AddToList(int flags, PROTOSEARCHRESULT* psr) flags); } -MCONTACT __cdecl CMsnProto::AddToListByEvent(int flags, int iContact, HANDLE hDbEvent) +MCONTACT __cdecl CMsnProto::AddToListByEvent(int flags, int, HANDLE hDbEvent) { DBEVENTINFO dbei = { sizeof(dbei) }; if ((dbei.cbBlob = db_event_getBlobSize(hDbEvent)) == (DWORD)(-1)) @@ -267,7 +267,7 @@ MCONTACT __cdecl CMsnProto::AddToListByEvent(int flags, int iContact, HANDLE hDb return AddToListByEmail(email, nick, flags); } -int CMsnProto::AuthRecv(MCONTACT hContact, PROTORECVEVENT* pre) +int CMsnProto::AuthRecv(MCONTACT, PROTORECVEVENT* pre) { Proto_AuthRecv(m_szModuleName, pre); return 0; @@ -341,7 +341,7 @@ int CMsnProto::Authorize(HANDLE hDbEvent) ///////////////////////////////////////////////////////////////////////////////////////// // MsnAuthDeny - called after unsuccessful authorization -int CMsnProto::AuthDeny(HANDLE hDbEvent, const TCHAR* szReason) +int CMsnProto::AuthDeny(HANDLE hDbEvent, const TCHAR*) { if (!msnLoggedIn) return 1; @@ -449,17 +449,17 @@ HANDLE __cdecl CMsnProto::SearchByEmail(const PROTOCHAR* email) } -HANDLE __cdecl CMsnProto::SearchByName(const PROTOCHAR* nick, const PROTOCHAR* firstName, const PROTOCHAR* lastName) +HANDLE __cdecl CMsnProto::SearchByName(const PROTOCHAR*, const PROTOCHAR*, const PROTOCHAR*) { return NULL; } -HWND __cdecl CMsnProto::SearchAdvanced(HWND hwndDlg) +HWND __cdecl CMsnProto::SearchAdvanced(HWND) { return NULL; } -HWND __cdecl CMsnProto::CreateExtendedSearchUI(HWND parent) +HWND __cdecl CMsnProto::CreateExtendedSearchUI(HWND) { return NULL; } @@ -490,7 +490,7 @@ void __cdecl CMsnProto::MsnFileAckThread(void* arg) ProtoBroadcastAck(ft->std.hContact, ACKTYPE_FILE, ACKRESULT_INITIALISING, ft, 0); } -HANDLE __cdecl CMsnProto::FileAllow(MCONTACT hContact, HANDLE hTransfer, const PROTOCHAR* szPath) +HANDLE __cdecl CMsnProto::FileAllow(MCONTACT, HANDLE hTransfer, const PROTOCHAR* szPath) { filetransfer* ft = (filetransfer*)hTransfer; @@ -516,7 +516,7 @@ HANDLE __cdecl CMsnProto::FileAllow(MCONTACT hContact, HANDLE hTransfer, const P ///////////////////////////////////////////////////////////////////////////////////////// // MsnFileCancel - cancels the active file transfer -int __cdecl CMsnProto::FileCancel(MCONTACT hContact, HANDLE hTransfer) +int __cdecl CMsnProto::FileCancel(MCONTACT, HANDLE hTransfer) { filetransfer* ft = (filetransfer*)hTransfer; @@ -546,7 +546,7 @@ int __cdecl CMsnProto::FileCancel(MCONTACT hContact, HANDLE hTransfer) ///////////////////////////////////////////////////////////////////////////////////////// // MsnFileDeny - rejects the file transfer request -int __cdecl CMsnProto::FileDeny(MCONTACT hContact, HANDLE hTransfer, const PROTOCHAR* /*szReason*/) +int __cdecl CMsnProto::FileDeny(MCONTACT, HANDLE hTransfer, const PROTOCHAR* /*szReason*/) { filetransfer* ft = (filetransfer*)hTransfer; @@ -644,7 +644,7 @@ HANDLE __cdecl CMsnProto::GetAwayMsg(MCONTACT hContact) ///////////////////////////////////////////////////////////////////////////////////////// // MsnGetCaps - obtain the protocol capabilities -DWORD_PTR __cdecl CMsnProto::GetCaps(int type, MCONTACT hContact) +DWORD_PTR __cdecl CMsnProto::GetCaps(int type, MCONTACT) { switch (type) { case PFLAGNUM_1: @@ -681,7 +681,7 @@ DWORD_PTR __cdecl CMsnProto::GetCaps(int type, MCONTACT hContact) ///////////////////////////////////////////////////////////////////////////////////////// // MsnGetInfo - nothing to do, cause we cannot obtain information from the server -int __cdecl CMsnProto::GetInfo(MCONTACT hContact, int infoType) +int __cdecl CMsnProto::GetInfo(MCONTACT, int) { return 1; } @@ -689,7 +689,7 @@ int __cdecl CMsnProto::GetInfo(MCONTACT hContact, int infoType) //////////////////////////////////////////////////////////////////////////////////////// // RecvContacts -int __cdecl CMsnProto::RecvContacts(MCONTACT hContact, PROTORECVEVENT*) +int __cdecl CMsnProto::RecvContacts(MCONTACT, PROTORECVEVENT*) { return 1; } @@ -720,7 +720,7 @@ int __cdecl CMsnProto::RecvMsg(MCONTACT hContact, PROTORECVEVENT* pre) //////////////////////////////////////////////////////////////////////////////////////// // RecvUrl -int __cdecl CMsnProto::RecvUrl(MCONTACT hContact, PROTORECVEVENT*) +int __cdecl CMsnProto::RecvUrl(MCONTACT, PROTORECVEVENT*) { return 1; } @@ -728,7 +728,7 @@ int __cdecl CMsnProto::RecvUrl(MCONTACT hContact, PROTORECVEVENT*) //////////////////////////////////////////////////////////////////////////////////////// // SendContacts -int __cdecl CMsnProto::SendContacts(MCONTACT hContact, int flags, int nContacts, MCONTACT *hContactsList) +int __cdecl CMsnProto::SendContacts(MCONTACT, int, int, MCONTACT*) { return 1; } @@ -736,7 +736,7 @@ int __cdecl CMsnProto::SendContacts(MCONTACT hContact, int flags, int nContacts, ///////////////////////////////////////////////////////////////////////////////////////// // MsnSendFile - initiates a file transfer -HANDLE __cdecl CMsnProto::SendFile(MCONTACT hContact, const PROTOCHAR* szDescription, PROTOCHAR** ppszFiles) +HANDLE __cdecl CMsnProto::SendFile(MCONTACT hContact, const PROTOCHAR*, PROTOCHAR** ppszFiles) { if (!msnLoggedIn) return 0; @@ -944,7 +944,7 @@ int __cdecl CMsnProto::SetAwayMsg(int status, const TCHAR* msg) //////////////////////////////////////////////////////////////////////////////////////// // PSR_AWAYMSG -int __cdecl CMsnProto::RecvAwayMsg(MCONTACT hContact, int statusMode, PROTORECVEVENT* evt) +int __cdecl CMsnProto::RecvAwayMsg(MCONTACT, int, PROTORECVEVENT*) { return 1; } @@ -1043,7 +1043,7 @@ int __cdecl CMsnProto::UserIsTyping(MCONTACT hContact, int type) //////////////////////////////////////////////////////////////////////////////////////// // SendUrl -int __cdecl CMsnProto::SendUrl(MCONTACT hContact, int flags, const char* url) +int __cdecl CMsnProto::SendUrl(MCONTACT, int, const char*) { return 1; } diff --git a/protocols/MSN/src/msn_proto.h b/protocols/MSN/src/msn_proto.h index bcac61e2be..42922a2ab4 100644 --- a/protocols/MSN/src/msn_proto.h +++ b/protocols/MSN/src/msn_proto.h @@ -221,7 +221,7 @@ struct CMsnProto : public PROTO void LoadOptions(void); void InitPopups(void); - void MSN_ShowPopup(const TCHAR* nickname, const TCHAR* msg, int flags, const char* url, MCONTACT hContact = NULL); + void MSN_ShowPopup(const TCHAR* nickname, const TCHAR* msg, int flags, const char* url); void MSN_ShowPopup(const MCONTACT hContact, const TCHAR* msg, int flags); void MSN_ShowError(const char* msgtext, ...); diff --git a/protocols/MSN/src/msn_svcs.cpp b/protocols/MSN/src/msn_svcs.cpp index 62d433b4b0..c7beb43a5a 100644 --- a/protocols/MSN/src/msn_svcs.cpp +++ b/protocols/MSN/src/msn_svcs.cpp @@ -179,7 +179,7 @@ INT_PTR CMsnProto::GetAvatarCaps(WPARAM wParam, LPARAM lParam) ///////////////////////////////////////////////////////////////////////////////////////// // MsnSetAvatar - sets an avatar without UI -INT_PTR CMsnProto::SetAvatar(WPARAM wParam, LPARAM lParam) +INT_PTR CMsnProto::SetAvatar(WPARAM, LPARAM lParam) { TCHAR* szFileName = (TCHAR*)lParam; @@ -209,7 +209,7 @@ INT_PTR CMsnProto::SetAvatar(WPARAM wParam, LPARAM lParam) TCHAR ext[_MAX_EXT]; _tsplitpath(szFileName, drive, dir, fname, ext); - int fmt = MSN_SetMyAvatar(fname, pData, dwPngSize); + MSN_SetMyAvatar(fname, pData, dwPngSize); StoreAvatarData* par = (StoreAvatarData*)mir_alloc(sizeof(StoreAvatarData)); par->szName = mir_tstrdup(fname); @@ -239,7 +239,7 @@ INT_PTR CMsnProto::SetNickName(WPARAM wParam, LPARAM lParam) ///////////////////////////////////////////////////////////////////////////////////////// // MsnSendNudge - Sending a nudge -INT_PTR CMsnProto::SendNudge(WPARAM hContact, LPARAM lParam) +INT_PTR CMsnProto::SendNudge(WPARAM hContact, LPARAM) { if (!msnLoggedIn) return 0; @@ -285,7 +285,7 @@ INT_PTR CMsnProto::SendNudge(WPARAM hContact, LPARAM lParam) ///////////////////////////////////////////////////////////////////////////////////////// // GetCurrentMedia - get current media -INT_PTR CMsnProto::GetCurrentMedia(WPARAM wParam, LPARAM lParam) +INT_PTR CMsnProto::GetCurrentMedia(WPARAM, LPARAM lParam) { LISTENINGTOINFO *cm = (LISTENINGTOINFO *)lParam; @@ -309,7 +309,7 @@ INT_PTR CMsnProto::GetCurrentMedia(WPARAM wParam, LPARAM lParam) ///////////////////////////////////////////////////////////////////////////////////////// // SetCurrentMedia - set current media -INT_PTR CMsnProto::SetCurrentMedia(WPARAM wParam, LPARAM lParam) +INT_PTR CMsnProto::SetCurrentMedia(WPARAM, LPARAM lParam) { // Clear old info mir_free(msnCurrentMedia.ptszArtist); @@ -368,7 +368,7 @@ INT_PTR CMsnProto::SetCurrentMedia(WPARAM wParam, LPARAM lParam) ///////////////////////////////////////////////////////////////////////////////////////// // MsnContactDeleted - called when a contact is deleted from list -int CMsnProto::OnContactDeleted(WPARAM hContact, LPARAM lParam) +int CMsnProto::OnContactDeleted(WPARAM hContact, LPARAM) { if (!msnLoggedIn) //should never happen for MSN contacts return 0; @@ -383,7 +383,7 @@ int CMsnProto::OnContactDeleted(WPARAM hContact, LPARAM lParam) else { char szEmail[MSN_MAX_EMAIL_LEN]; if (MSN_IsMeByContact(hContact, szEmail)) - CallService(MS_CLIST_REMOVEEVENT, hContact, (LPARAM)1); + CallService(MS_CLIST_REMOVEEVENT, hContact, 1); if (szEmail[0]) { debugLogA("Deleted Handler Email"); @@ -492,7 +492,7 @@ int CMsnProto::OnDbSettingChanged(WPARAM hContact, LPARAM lParam) ///////////////////////////////////////////////////////////////////////////////////////// // OnIdleChanged - transitions to Idle -int CMsnProto::OnIdleChanged(WPARAM wParam, LPARAM lParam) +int CMsnProto::OnIdleChanged(WPARAM, LPARAM lParam) { if (m_iStatus == ID_STATUS_INVISIBLE || m_iStatus <= ID_STATUS_OFFLINE) return 0; @@ -515,7 +515,7 @@ int CMsnProto::OnIdleChanged(WPARAM wParam, LPARAM lParam) ///////////////////////////////////////////////////////////////////////////////////////// // OnWindowEvent - creates session on window open -int CMsnProto::OnWindowEvent(WPARAM wParam, LPARAM lParam) +int CMsnProto::OnWindowEvent(WPARAM, LPARAM lParam) { MessageWindowEventData* msgEvData = (MessageWindowEventData*)lParam; @@ -545,7 +545,7 @@ int CMsnProto::OnWindowEvent(WPARAM wParam, LPARAM lParam) ///////////////////////////////////////////////////////////////////////////////////////// // OnWindowEvent - creates session on window open -int CMsnProto::OnWindowPopup(WPARAM wParam, LPARAM lParam) +int CMsnProto::OnWindowPopup(WPARAM, LPARAM lParam) { MessageWindowPopupData *mwpd = (MessageWindowPopupData *)lParam; if (!MSN_IsMyContact(mwpd->hContact) || isChatRoom(mwpd->hContact)) @@ -568,7 +568,7 @@ int CMsnProto::OnWindowPopup(WPARAM wParam, LPARAM lParam) ///////////////////////////////////////////////////////////////////////////////////////// // MsnGetUnread - returns the actual number of unread emails in the INBOX -INT_PTR CMsnProto::GetUnreadEmailCount(WPARAM wParam, LPARAM lParam) +INT_PTR CMsnProto::GetUnreadEmailCount(WPARAM, LPARAM) { if (!msnLoggedIn) return 0; @@ -578,7 +578,7 @@ INT_PTR CMsnProto::GetUnreadEmailCount(WPARAM wParam, LPARAM lParam) ///////////////////////////////////////////////////////////////////////////////////////// // OnLeaveChat - closes MSN chat window -INT_PTR CMsnProto::OnLeaveChat(WPARAM hContact, LPARAM lParam) +INT_PTR CMsnProto::OnLeaveChat(WPARAM hContact, LPARAM) { if (isChatRoom(hContact) != 0) { DBVARIANT dbv; -- cgit v1.2.3