summaryrefslogtreecommitdiff
path: root/protocols/WhatsAppWeb/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-04-19 11:42:29 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-04-19 11:42:36 +0300
commita6d12ce24f94600dea3fb64aaa3b08c7b6be11ea (patch)
treed5d27f12709232520f0c62d01179df80355d020b /protocols/WhatsAppWeb/src
parent061b4f4b4032e9d12ba024950b4b5ce55efef824 (diff)
warning fixes
Diffstat (limited to 'protocols/WhatsAppWeb/src')
-rw-r--r--protocols/WhatsAppWeb/src/avatars.cpp2
-rw-r--r--protocols/WhatsAppWeb/src/main.cpp4
-rw-r--r--protocols/WhatsAppWeb/src/proto.cpp6
3 files changed, 6 insertions, 6 deletions
diff --git a/protocols/WhatsAppWeb/src/avatars.cpp b/protocols/WhatsAppWeb/src/avatars.cpp
index 43178e8bfb..fb51e03c79 100644
--- a/protocols/WhatsAppWeb/src/avatars.cpp
+++ b/protocols/WhatsAppWeb/src/avatars.cpp
@@ -75,7 +75,7 @@ INT_PTR WhatsAppProto::GetMyAvatar(WPARAM wParam, LPARAM lParam)
return 0;
}
-INT_PTR WhatsAppProto::SetMyAvatar(WPARAM, LPARAM lParam)
+INT_PTR WhatsAppProto::SetMyAvatar(WPARAM, LPARAM)
{
return 0;
}
diff --git a/protocols/WhatsAppWeb/src/main.cpp b/protocols/WhatsAppWeb/src/main.cpp
index 42152ecea0..91c44d4b18 100644
--- a/protocols/WhatsAppWeb/src/main.cpp
+++ b/protocols/WhatsAppWeb/src/main.cpp
@@ -34,7 +34,7 @@ static int hmac_sha256_init(void **hmac_context, const uint8_t *key, size_t key_
{
HMAC_CTX *ctx = HMAC_CTX_new();
*hmac_context = ctx;
- HMAC_Init(ctx, key, key_len, EVP_sha256());
+ HMAC_Init(ctx, key, (int)key_len, EVP_sha256());
return 0;
}
@@ -43,7 +43,7 @@ int hmac_sha256_update(void *hmac_context, const uint8_t *data, size_t data_len,
return HMAC_Update((HMAC_CTX *)hmac_context, data, data_len);
}
-int hmac_sha256_final(void *hmac_context, signal_buffer **output, void *user_data)
+int hmac_sha256_final(void *hmac_context, signal_buffer **output, void *)
{
BYTE data[200];
unsigned len = 0;
diff --git a/protocols/WhatsAppWeb/src/proto.cpp b/protocols/WhatsAppWeb/src/proto.cpp
index 6afd3da618..41491f3e95 100644
--- a/protocols/WhatsAppWeb/src/proto.cpp
+++ b/protocols/WhatsAppWeb/src/proto.cpp
@@ -96,7 +96,7 @@ void WhatsAppProto::OnModulesLoaded()
/////////////////////////////////////////////////////////////////////////////////////////
// PROTO_INTERFACE implementation
-MCONTACT WhatsAppProto::AddToList(int flags, PROTOSEARCHRESULT *psr)
+MCONTACT WhatsAppProto::AddToList(int, PROTOSEARCHRESULT *psr)
{
if (psr->id.w == nullptr)
return NULL;
@@ -183,7 +183,7 @@ int WhatsAppProto::SetStatus(int new_status)
return 0;
}
-int WhatsAppProto::SendMsg(MCONTACT hContact, int, const char *msg)
+int WhatsAppProto::SendMsg(MCONTACT hContact, int, const char *)
{
ptrA jid(getStringA(hContact, DBKEY_ID));
if (jid == NULL)
@@ -197,7 +197,7 @@ int WhatsAppProto::SendMsg(MCONTACT hContact, int, const char *msg)
return 0;
}
-int WhatsAppProto::UserIsTyping(MCONTACT hContact, int type)
+int WhatsAppProto::UserIsTyping(MCONTACT hContact, int)
{
if (hContact && isOnline()) {
ptrA jid(getStringA(hContact, DBKEY_ID));