Silence some warning in PurpleContactManager

Sun, 04 Dec 2022 05:56:06 -0600

author
Gary Kramlich <grim@reaperworld.com>
date
Sun, 04 Dec 2022 05:56:06 -0600
changeset 41956
ba714f65be70
parent 41955
d3117aac63b3
child 41957
17fd3bcecaeb

Silence some warning in PurpleContactManager

Testing Done:
Compiled and verified the warnings were gone.

Reviewed at https://reviews.imfreedom.org/r/2112/

libpurple/purplecontactmanager.c file | annotate | diff | comparison | revisions
--- a/libpurple/purplecontactmanager.c	Fri Dec 02 12:46:05 2022 -0600
+++ b/libpurple/purplecontactmanager.c	Sun Dec 04 05:56:06 2022 -0600
@@ -46,8 +46,8 @@
 purple_contact_manager_find_with_username_helper(gconstpointer a,
                                                  gconstpointer b)
 {
-	PurpleContactInfo *info_a = PURPLE_CONTACT_INFO(a);
-	PurpleContactInfo *info_b = PURPLE_CONTACT_INFO(b);
+	PurpleContactInfo *info_a = PURPLE_CONTACT_INFO((gpointer)a);
+	PurpleContactInfo *info_b = PURPLE_CONTACT_INFO((gpointer)b);
 	const gchar *username_a = NULL;
 	const gchar *username_b = NULL;
 
@@ -59,8 +59,8 @@
 
 static gboolean
 purple_contact_manager_find_with_id_helper(gconstpointer a, gconstpointer b) {
-	PurpleContactInfo *info_a = PURPLE_CONTACT_INFO(a);
-	PurpleContactInfo *info_b = PURPLE_CONTACT_INFO(b);
+	PurpleContactInfo *info_a = PURPLE_CONTACT_INFO((gpointer)a);
+	PurpleContactInfo *info_b = PURPLE_CONTACT_INFO((gpointer)b);
 	const gchar *id_a = NULL;
 	const gchar *id_b = NULL;
 

mercurial