From 36abafbd09cb74f66804938238dd5be13caff5dd Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 19 Nov 2019 16:32:07 +0300 Subject: warning fixes --- libs/freeimage/src/main.cpp | 3 +-- protocols/VKontakte/src/vk_thread.cpp | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/libs/freeimage/src/main.cpp b/libs/freeimage/src/main.cpp index 7c44439554..07083a3702 100644 --- a/libs/freeimage/src/main.cpp +++ b/libs/freeimage/src/main.cpp @@ -161,8 +161,7 @@ EXTERN_C DLL_API FIBITMAP* DLL_CALLCONV FreeImage_CreateDIBFromHBITMAP(HBITMAP h // So we save these infos below. This is needed for palettized images only. int nColors = FreeImage_GetColorsUsed(dib); HDC dc = GetDC(nullptr); - int Success = GetDIBits(dc, hBmp, 0, FreeImage_GetHeight(dib), - FreeImage_GetBits(dib), FreeImage_GetInfo(dib), DIB_RGB_COLORS); + GetDIBits(dc, hBmp, 0, FreeImage_GetHeight(dib), FreeImage_GetBits(dib), FreeImage_GetInfo(dib), DIB_RGB_COLORS); ReleaseDC(nullptr, dc); // restore BITMAPINFO members FreeImage_GetInfoHeader(dib)->biClrUsed = nColors; diff --git a/protocols/VKontakte/src/vk_thread.cpp b/protocols/VKontakte/src/vk_thread.cpp index a69a5c3c35..087cbe418c 100644 --- a/protocols/VKontakte/src/vk_thread.cpp +++ b/protocols/VKontakte/src/vk_thread.cpp @@ -672,7 +672,7 @@ void CVkProto::OnReceiveUserInfo(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pRe if (jnResponse["freeoffline"].as_bool()) for (auto &it : arContacts) { - MCONTACT cc = (MCONTACT)it; + MCONTACT cc = (UINT_PTR)it; LONG userID = getDword(cc, "ID", VK_INVALID_USER); if (userID == m_myUserId || userID == VK_FEED_USER) continue; @@ -838,7 +838,7 @@ void CVkProto::OnReceiveFriends(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pReq if (bCleanContacts) for (auto &it : arContacts) { - MCONTACT hContact = (MCONTACT)it; + MCONTACT hContact = (UINT_PTR)it; LONG userID = getDword(hContact, "ID", VK_INVALID_USER); bool bIsFriendGroup = IsGroupUser(hContact) && getBool(hContact, "friend"); if (userID == m_myUserId || userID == VK_FEED_USER || bIsFriendGroup) -- cgit v1.2.3