This seems successful to me, I had to install JSON-glib to get it to work. Pidgin's plugin manager window does not list Groupme.
cc -fPIC -O2 -g -pipe -Wall -std=c99 -DGROUPME_PLUGIN_VERSION='"0.9.2021.10.18.git.d7dd308"' -DENABLE_NLS -DLOCALEDIR=\"/usr/share/locale\" -shared -o libgroupme.so libgroupme.c -Wl,-z,relro pkg-config purple glib-2.0 json-glib-1.0 --libs --cflags -Ipurple2compat -g -ggdb
In file included from /usr/include/libpurple/media/codec.h:35,
from /usr/include/libpurple/media.h:31,
from /usr/include/libpurple/prpl.h:75,
from /usr/include/libpurple/buddyicon.h:39,
from /usr/include/libpurple/blist.h:110,
from /usr/include/libpurple/status.h:133,
from /usr/include/libpurple/connection.h:151,
from /usr/include/libpurple/account.h:49,
from /usr/include/libpurple/purple.h:48,
from purple_compat.h:19,
from libgroupme.c:44:
In file included from /usr/include/libpurple/prpl.h:75,
from /usr/include/libpurple/buddyicon.h:39,
from /usr/include/libpurple/blist.h:110,
from /usr/include/libpurple/status.h:133,
from /usr/include/libpurple/connection.h:151,
from /usr/include/libpurple/account.h:49,
from /usr/include/libpurple/purple.h:48,
from purple_compat.h:19,
from libgroupme.c:44:
In file included from /usr/include/glib-2.0/gobject/gobject.h:26,
from /usr/include/glib-2.0/gobject/gbinding.h:29,
from /usr/include/glib-2.0/glib-object.h:22,
from /usr/include/json-glib-1.0/json-glib/json-types.h:31,
from /usr/include/json-glib-1.0/json-glib/json-glib.h:29,
from json_compat.h:20,
from libgroupme.c:43:
/usr/include/glib-2.0/gobject/gparam.h:271:8: note: declared here
271 | struct _GParameter /* auxiliary structure for _setv() variants */
| ^~~~~~~~~~~
In file included from /usr/include/libpurple/prpl.h:75,
from /usr/include/libpurple/buddyicon.h:39,
from /usr/include/libpurple/blist.h:110,
from /usr/include/libpurple/status.h:133,
from /usr/include/libpurple/connection.h:151,
from /usr/include/libpurple/account.h:49,
from /usr/include/libpurple/purple.h:48,
from purple_compat.h:19,
from libgroupme.c:44:
In file included from /usr/include/glib-2.0/gobject/gobject.h:26,
from /usr/include/glib-2.0/gobject/gbinding.h:29,
from /usr/include/glib-2.0/glib-object.h:22,
from /usr/include/json-glib-1.0/json-glib/json-types.h:31,
from /usr/include/json-glib-1.0/json-glib/json-glib.h:29,
from json_compat.h:20,
from libgroupme.c:43:
/usr/include/glib-2.0/gobject/gparam.h:271:8: note: declared here
271 | struct _GParameter /* auxiliary structure for _setv() variants */
| ^~~~~~~~~~~
libgroupme.c: In function ‘groupme_new_user’:
libgroupme.c:182:13: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
182 | user->id_s = json_object_get_string_member(json, "user_id");
| ^
libgroupme.c:185:14: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
185 | user->id_s = json_object_get_string_member(json, "id");
| ^
libgroupme.c:189:13: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
189 | user->name = json_object_get_string_member(json, "nickname");
| ^
libgroupme.c:192:14: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
192 | user->name = json_object_get_string_member(json, "name");
| ^
libgroupme.c: In function ‘groupme_create_associate’:
libgroupme.c:855:47: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘guint64’ {aka ‘long unsigned int’} [-Wformat=]
855 | printf("Not associating with unknown user %d\n", id);
| ~^ ~~
| | |
| int guint64 {aka long unsigned int}
| %ld
libgroupme.c: In function ‘groupme_process_message’:
libgroupme.c:919:3: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type]
919 | return;
| ^~~~~~
libgroupme.c:902:1: note: declared here
902 | groupme_process_message(GroupMeAccount *da, int channel, JsonObject *data, gboolean is_dm)
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from libgroupme.c:43:
json_compat.h:28:2: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
28 | (json_object_has_member(JSON_OBJECT, MEMBER) ? json_object_get_string_member(JSON_OBJECT, MEMBER) : NULL)
| ^
libgroupme.c:983:17: note: in expansion of macro ‘json_object_get_string_member’
983 | gchar *name = json_object_get_string_member(data, "name");
libgroupme.c: In function ‘groupme_bring_up_buddies’:
libgroupme.c:1084:19: warning: unused variable ‘node’ [-Wunused-variable]
1084 | PurpleBlistNode *node;
| ^~~~
In file included from libgroupme.c:43:
libgroupme.c: In function ‘groupme_populate_guild’:
json_compat.h:28:2: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
28 | (json_object_has_member(JSON_OBJECT, MEMBER) ? json_object_get_string_member(JSON_OBJECT, MEMBER) : NULL)
| ^
libgroupme.c:1254:16: note: in expansion of macro ‘json_object_get_string_member’
1254 | gchar *name = json_object_get_string_member(guild, "name");
libgroupme.c: In function ‘groupme_got_history_static’:
libgroupme.c:2137:15: warning: unused variable ‘message’ [-Wunused-variable]
2137 | JsonObject *message = json_array_get_object_element(messages, i);
| ^~~~~~~
libgroupme.c: In function ‘groupme_conv_send_typing’:
libgroupme.c:2384:9: warning: unused variable ‘url’ [-Wunused-variable]
2384 | gchar *url;
| ^~~
In file included from /usr/lib/x86_64-linux-gnu/glib-2.0/include/glibconfig.h:9,
from /usr/include/glib-2.0/glib/gtypes.h:32,
from /usr/include/glib-2.0/glib/galloca.h:32,
from /usr/include/glib-2.0/glib.h:30,
from /usr/include/glib-2.0/glib/gi18n-lib.h:21,
from libgroupme.c:30:
libgroupme.c: In function ‘groupme_conversation_send_message’:
/usr/include/glib-2.0/glib/gmacros.h:798:14: warning: passing argument 3 of ‘g_hash_table_replace’ makes pointer from integer without a cast [-Wint-conversion]
798 | #define TRUE (!FALSE)
| ^~~~~~~~
| |
| int
libgroupme.c:2451:51: note: in expansion of macro ‘TRUE’
2451 | g_hash_table_replace(da->sent_message_ids, guid, TRUE);
| ^~~~
In file included from /usr/include/glib-2.0/glib.h:50,
from /usr/include/glib-2.0/glib/gi18n-lib.h:21,
from libgroupme.c:30:
/usr/include/glib-2.0/glib/ghash.h:73:61: note: expected ‘gpointer’ {aka ‘void *’} but argument is of type ‘int’
73 | gpointer value);
| ~~~~~~~~~~~~~~~~^~~~~
libgroupme.c: In function ‘groupme_send_im’:
libgroupme.c:2533:18: warning: unused variable ‘msg’ [-Wunused-variable]
2533 | PurpleMessage *msg = purple_message_new_outgoing(who, message, flags);
| ^~~
libgroupme.c: In function ‘groupme_get_info’:
libgroupme.c:2609:9: warning: unused variable ‘url’ [-Wunused-variable]
2609 | gchar *url;
| ^~~
At top level:
libgroupme.c:2178:1: warning: ‘groupme_set_room_last_id’ defined but not used [-Wunused-function]
2178 | groupme_set_room_last_id(GroupMeAccount *da, guint64 id, guint64 last_id)
| ^~~~~~~~~~~~~~~~~~~~~~~~
libgroupme.c:2149:1: warning: ‘groupme_get_room_last_id’ defined but not used [-Wunused-function]
2149 | groupme_get_room_last_id(GroupMeAccount *da, guint64 id)
| ^~~~~~~~~~~~~~~~~~~~~~~~
libgroupme.c:2131:1: warning: ‘groupme_got_history_static’ defined but not used [-Wunused-function]
2131 | groupme_got_history_static(GroupMeAccount *da, JsonNode *node, gpointer user_data)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
libgroupme.c:1173:1: warning: ‘groupme_normalise_room_name’ defined but not used [-Wunused-function]
1173 | groupme_normalise_room_name(const gchar *guild_name, const gchar *name)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
libgroupme.c:1013:1: warning: ‘groupme_set_group_typing’ defined but not used [-Wunused-function]
1013 | groupme_set_group_typing(void *_u)
| ^~~~~~~~~~~~~~~~~~~~~~~~
make: *** No rule to make target 'groupme16.png', needed by 'install-icons'. Stop.
This seems successful to me, I had to install JSON-glib to get it to work. Pidgin's plugin manager window does not list Groupme.
cc -fPIC -O2 -g -pipe -Wall -std=c99 -DGROUPME_PLUGIN_VERSION='"0.9.2021.10.18.git.d7dd308"' -DENABLE_NLS -DLOCALEDIR=\"/usr/share/locale\" -shared -o libgroupme.so libgroupme.c -Wl,-z,relro `pkg-config purple glib-2.0 json-glib-1.0 --libs --cflags` -Ipurple2compat -g -ggdb
In file included from /usr/include/libpurple/media/codec.h:35,
from /usr/include/libpurple/media.h:31,
from /usr/include/libpurple/prpl.h:75,
from /usr/include/libpurple/buddyicon.h:39,
from /usr/include/libpurple/blist.h:110,
from /usr/include/libpurple/status.h:133,
from /usr/include/libpurple/connection.h:151,
from /usr/include/libpurple/account.h:49,
from /usr/include/libpurple/purple.h:48,
from purple_compat.h:19,
from libgroupme.c:44:
/usr/include/libpurple/media/../util.h:1397:13: warning: Deprecated pre-processor symbol, replace with
1397 | G_CONST_RETURN gchar *purple_gai_strerror(gint errnum);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/libpurple/prpl.h:75,
from /usr/include/libpurple/buddyicon.h:39,
from /usr/include/libpurple/blist.h:110,
from /usr/include/libpurple/status.h:133,
from /usr/include/libpurple/connection.h:151,
from /usr/include/libpurple/account.h:49,
from /usr/include/libpurple/purple.h:48,
from purple_compat.h:19,
from libgroupme.c:44:
/usr/include/libpurple/media.h:165:3: warning: ‘GParameter’ is deprecated [-Wdeprecated-declarations]
165 | guint num_params, GParameter *params);
| ^~~~~
In file included from /usr/include/glib-2.0/gobject/gobject.h:26,
from /usr/include/glib-2.0/gobject/gbinding.h:29,
from /usr/include/glib-2.0/glib-object.h:22,
from /usr/include/json-glib-1.0/json-glib/json-types.h:31,
from /usr/include/json-glib-1.0/json-glib/json-glib.h:29,
from json_compat.h:20,
from libgroupme.c:43:
/usr/include/glib-2.0/gobject/gparam.h:271:8: note: declared here
271 | struct _GParameter /* auxiliary structure for _setv() variants */
| ^~~~~~~~~~~
In file included from /usr/include/libpurple/prpl.h:75,
from /usr/include/libpurple/buddyicon.h:39,
from /usr/include/libpurple/blist.h:110,
from /usr/include/libpurple/status.h:133,
from /usr/include/libpurple/connection.h:151,
from /usr/include/libpurple/account.h:49,
from /usr/include/libpurple/purple.h:48,
from purple_compat.h:19,
from libgroupme.c:44:
/usr/include/libpurple/media.h:214:3: warning: ‘GParameter’ is deprecated [-Wdeprecated-declarations]
214 | guint num_params, GParameter *params);
| ^~~~~
In file included from /usr/include/glib-2.0/gobject/gobject.h:26,
from /usr/include/glib-2.0/gobject/gbinding.h:29,
from /usr/include/glib-2.0/glib-object.h:22,
from /usr/include/json-glib-1.0/json-glib/json-types.h:31,
from /usr/include/json-glib-1.0/json-glib/json-glib.h:29,
from json_compat.h:20,
from libgroupme.c:43:
/usr/include/glib-2.0/gobject/gparam.h:271:8: note: declared here
271 | struct _GParameter /* auxiliary structure for _setv() variants */
| ^~~~~~~~~~~
libgroupme.c: In function ‘groupme_new_user’:
libgroupme.c:182:13: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
182 | user->id_s = json_object_get_string_member(json, "user_id");
| ^
libgroupme.c:185:14: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
185 | user->id_s = json_object_get_string_member(json, "id");
| ^
libgroupme.c:189:13: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
189 | user->name = json_object_get_string_member(json, "nickname");
| ^
libgroupme.c:192:14: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
192 | user->name = json_object_get_string_member(json, "name");
| ^
libgroupme.c: In function ‘groupme_create_associate’:
libgroupme.c:855:47: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘guint64’ {aka ‘long unsigned int’} [-Wformat=]
855 | printf("Not associating with unknown user %d\n", id);
| ~^ ~~
| | |
| int guint64 {aka long unsigned int}
| %ld
libgroupme.c: In function ‘groupme_process_message’:
libgroupme.c:919:3: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type]
919 | return;
| ^~~~~~
libgroupme.c:902:1: note: declared here
902 | groupme_process_message(GroupMeAccount *da, int channel, JsonObject *data, gboolean is_dm)
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from libgroupme.c:43:
json_compat.h:28:2: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
28 | (json_object_has_member(JSON_OBJECT, MEMBER) ? json_object_get_string_member(JSON_OBJECT, MEMBER) : NULL)
| ^
libgroupme.c:983:17: note: in expansion of macro ‘json_object_get_string_member’
983 | gchar *name = json_object_get_string_member(data, "name");
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libgroupme.c:914:9: warning: unused variable ‘tmp’ [-Wunused-variable]
914 | gchar *tmp;
| ^~~
libgroupme.c: In function ‘groupme_got_nick_change’:
libgroupme.c:1069:16: warning: unused variable ‘value’ [-Wunused-variable]
1069 | gpointer key, value;
| ^~~~~
libgroupme.c:1069:11: warning: unused variable ‘key’ [-Wunused-variable]
1069 | gpointer key, value;
| ^~~
libgroupme.c:1068:17: warning: unused variable ‘channel_iter’ [-Wunused-variable]
1068 | GHashTableIter channel_iter;
| ^~~~~~~~~~~~
libgroupme.c: In function ‘groupme_bring_up_buddies’:
libgroupme.c:1084:19: warning: unused variable ‘node’ [-Wunused-variable]
1084 | PurpleBlistNode *node;
| ^~~~
In file included from libgroupme.c:43:
libgroupme.c: In function ‘groupme_populate_guild’:
json_compat.h:28:2: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
28 | (json_object_has_member(JSON_OBJECT, MEMBER) ? json_object_get_string_member(JSON_OBJECT, MEMBER) : NULL)
| ^
libgroupme.c:1254:16: note: in expansion of macro ‘json_object_get_string_member’
1254 | gchar *name = json_object_get_string_member(guild, "name");
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libgroupme.c:1254:9: warning: unused variable ‘name’ [-Wunused-variable]
1254 | gchar *name = json_object_get_string_member(guild, "name");
| ^~~~
libgroupme.c: In function ‘groupme_process_frame’:
libgroupme.c:1542:15: warning: unused variable ‘obj’ [-Wunused-variable]
1542 | JsonObject *obj = json_node_get_object(root);
| ^~~
libgroupme.c:1529:9: warning: unused variable ‘opcode’ [-Wunused-variable]
1529 | gint64 opcode;
| ^~~~~~
libgroupme.c: In function ‘groupme_chat_info_defaults’:
libgroupme.c:2035:18: warning: unused variable ‘da’ [-Wunused-variable]
2035 | GroupMeAccount *da = purple_connection_get_protocol_data(pc);
| ^~
libgroupme.c: In function ‘groupme_got_history_of_room’:
libgroupme.c:2096:10: warning: unused variable ‘last_message’ [-Wunused-variable]
2096 | guint64 last_message = /* channel->last_message_id */ 0 /* XXX */;
| ^~~~~~~~~~~~
libgroupme.c: In function ‘groupme_got_history_static’:
libgroupme.c:2137:15: warning: unused variable ‘message’ [-Wunused-variable]
2137 | JsonObject *message = json_array_get_object_element(messages, i);
| ^~~~~~~
libgroupme.c: In function ‘groupme_conv_send_typing’:
libgroupme.c:2384:9: warning: unused variable ‘url’ [-Wunused-variable]
2384 | gchar *url;
| ^~~
In file included from /usr/lib/x86_64-linux-gnu/glib-2.0/include/glibconfig.h:9,
from /usr/include/glib-2.0/glib/gtypes.h:32,
from /usr/include/glib-2.0/glib/galloca.h:32,
from /usr/include/glib-2.0/glib.h:30,
from /usr/include/glib-2.0/glib/gi18n-lib.h:21,
from libgroupme.c:30:
libgroupme.c: In function ‘groupme_conversation_send_message’:
/usr/include/glib-2.0/glib/gmacros.h:798:14: warning: passing argument 3 of ‘g_hash_table_replace’ makes pointer from integer without a cast [-Wint-conversion]
798 | #define TRUE (!FALSE)
| ^~~~~~~~
| |
| int
libgroupme.c:2451:51: note: in expansion of macro ‘TRUE’
2451 | g_hash_table_replace(da->sent_message_ids, guid, TRUE);
| ^~~~
In file included from /usr/include/glib-2.0/glib.h:50,
from /usr/include/glib-2.0/glib/gi18n-lib.h:21,
from libgroupme.c:30:
/usr/include/glib-2.0/glib/ghash.h:73:61: note: expected ‘gpointer’ {aka ‘void *’} but argument is of type ‘int’
73 | gpointer value);
| ~~~~~~~~~~~~~~~~^~~~~
libgroupme.c: In function ‘groupme_send_im’:
libgroupme.c:2533:18: warning: unused variable ‘msg’ [-Wunused-variable]
2533 | PurpleMessage *msg = purple_message_new_outgoing(who, message, flags);
| ^~~
libgroupme.c: In function ‘groupme_get_info’:
libgroupme.c:2609:9: warning: unused variable ‘url’ [-Wunused-variable]
2609 | gchar *url;
| ^~~
At top level:
libgroupme.c:2178:1: warning: ‘groupme_set_room_last_id’ defined but not used [-Wunused-function]
2178 | groupme_set_room_last_id(GroupMeAccount *da, guint64 id, guint64 last_id)
| ^~~~~~~~~~~~~~~~~~~~~~~~
libgroupme.c:2149:1: warning: ‘groupme_get_room_last_id’ defined but not used [-Wunused-function]
2149 | groupme_get_room_last_id(GroupMeAccount *da, guint64 id)
| ^~~~~~~~~~~~~~~~~~~~~~~~
libgroupme.c:2131:1: warning: ‘groupme_got_history_static’ defined but not used [-Wunused-function]
2131 | groupme_got_history_static(GroupMeAccount *da, JsonNode *node, gpointer user_data)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
libgroupme.c:1173:1: warning: ‘groupme_normalise_room_name’ defined but not used [-Wunused-function]
1173 | groupme_normalise_room_name(const gchar *guild_name, const gchar *name)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
libgroupme.c:1013:1: warning: ‘groupme_set_group_typing’ defined but not used [-Wunused-function]
1013 | groupme_set_group_typing(void *_u)
| ^~~~~~~~~~~~~~~~~~~~~~~~
make: *** No rule to make target 'groupme16.png', needed by 'install-icons'. Stop.
This seems successful to me, I had to install JSON-glib to get it to work. Pidgin's plugin manager window does not list Groupme.
cc -fPIC -O2 -g -pipe -Wall -std=c99 -DGROUPME_PLUGIN_VERSION='"0.9.2021.10.18.git.d7dd308"' -DENABLE_NLS -DLOCALEDIR=\"/usr/share/locale\" -shared -o libgroupme.so libgroupme.c -Wl,-z,relro
pkg-config purple glib-2.0 json-glib-1.0 --libs --cflags
-Ipurple2compat -g -ggdb In file included from /usr/include/libpurple/media/codec.h:35,/usr/include/libpurple/media/../util.h:1397:13: warning: Deprecated pre-processor symbol, replace with 1397 | G_CONST_RETURN gchar *purple_gai_strerror(gint errnum);
In file included from /usr/include/libpurple/prpl.h:75,
/usr/include/libpurple/media.h:165:3: warning: ‘GParameter’ is deprecated [-Wdeprecated-declarations] 165 | guint num_params, GParameter *params);
In file included from /usr/include/glib-2.0/gobject/gobject.h:26,
/usr/include/glib-2.0/gobject/gparam.h:271:8: note: declared here 271 | struct _GParameter /* auxiliary structure for _setv() variants */
In file included from /usr/include/libpurple/prpl.h:75,
/usr/include/libpurple/media.h:214:3: warning: ‘GParameter’ is deprecated [-Wdeprecated-declarations] 214 | guint num_params, GParameter *params);
In file included from /usr/include/glib-2.0/gobject/gobject.h:26,
/usr/include/glib-2.0/gobject/gparam.h:271:8: note: declared here 271 | struct _GParameter /* auxiliary structure for _setv() variants */
libgroupme.c: In function ‘groupme_new_user’: libgroupme.c:182:13: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 182 | user->id_s = json_object_get_string_member(json, "user_id");
libgroupme.c:185:14: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 185 | user->id_s = json_object_get_string_member(json, "id");
libgroupme.c:189:13: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 189 | user->name = json_object_get_string_member(json, "nickname");
libgroupme.c:192:14: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 192 | user->name = json_object_get_string_member(json, "name");
libgroupme.c: In function ‘groupme_create_associate’: libgroupme.c:855:47: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘guint64’ {aka ‘long unsigned int’} [-Wformat=] 855 | printf("Not associating with unknown user %d\n", id);
libgroupme.c: In function ‘groupme_process_message’: libgroupme.c:919:3: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 919 | return;
libgroupme.c:902:1: note: declared here 902 | groupme_process_message(GroupMeAccount *da, int channel, JsonObject *data, gboolean is_dm)
In file included from libgroupme.c:43: json_compat.h:28:2: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 28 | (json_object_has_member(JSON_OBJECT, MEMBER) ? json_object_get_string_member(JSON_OBJECT, MEMBER) : NULL)
libgroupme.c:983:17: note: in expansion of macro ‘json_object_get_string_member’ 983 | gchar *name = json_object_get_string_member(data, "name");
libgroupme.c:914:9: warning: unused variable ‘tmp’ [-Wunused-variable] 914 | gchar *tmp;
libgroupme.c: In function ‘groupme_got_nick_change’: libgroupme.c:1069:16: warning: unused variable ‘value’ [-Wunused-variable] 1069 | gpointer key, value;
libgroupme.c:1069:11: warning: unused variable ‘key’ [-Wunused-variable] 1069 | gpointer key, value;
libgroupme.c:1068:17: warning: unused variable ‘channel_iter’ [-Wunused-variable] 1068 | GHashTableIter channel_iter;
libgroupme.c: In function ‘groupme_bring_up_buddies’: libgroupme.c:1084:19: warning: unused variable ‘node’ [-Wunused-variable] 1084 | PurpleBlistNode *node;
In file included from libgroupme.c:43: libgroupme.c: In function ‘groupme_populate_guild’: json_compat.h:28:2: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 28 | (json_object_has_member(JSON_OBJECT, MEMBER) ? json_object_get_string_member(JSON_OBJECT, MEMBER) : NULL)
libgroupme.c:1254:16: note: in expansion of macro ‘json_object_get_string_member’ 1254 | gchar *name = json_object_get_string_member(guild, "name");
libgroupme.c:1254:9: warning: unused variable ‘name’ [-Wunused-variable] 1254 | gchar *name = json_object_get_string_member(guild, "name");
libgroupme.c: In function ‘groupme_process_frame’: libgroupme.c:1542:15: warning: unused variable ‘obj’ [-Wunused-variable] 1542 | JsonObject *obj = json_node_get_object(root);
libgroupme.c:1529:9: warning: unused variable ‘opcode’ [-Wunused-variable] 1529 | gint64 opcode;
libgroupme.c: In function ‘groupme_chat_info_defaults’: libgroupme.c:2035:18: warning: unused variable ‘da’ [-Wunused-variable] 2035 | GroupMeAccount *da = purple_connection_get_protocol_data(pc);
libgroupme.c: In function ‘groupme_got_history_of_room’: libgroupme.c:2096:10: warning: unused variable ‘last_message’ [-Wunused-variable] 2096 | guint64 last_message = /* channel->last_message_id / 0 / XXX */;
libgroupme.c: In function ‘groupme_got_history_static’: libgroupme.c:2137:15: warning: unused variable ‘message’ [-Wunused-variable] 2137 | JsonObject *message = json_array_get_object_element(messages, i);
libgroupme.c: In function ‘groupme_conv_send_typing’: libgroupme.c:2384:9: warning: unused variable ‘url’ [-Wunused-variable] 2384 | gchar *url;
In file included from /usr/lib/x86_64-linux-gnu/glib-2.0/include/glibconfig.h:9,
libgroupme.c: In function ‘groupme_conversation_send_message’: /usr/include/glib-2.0/glib/gmacros.h:798:14: warning: passing argument 3 of ‘g_hash_table_replace’ makes pointer from integer without a cast [-Wint-conversion] 798 | #define TRUE (!FALSE)
libgroupme.c:2451:51: note: in expansion of macro ‘TRUE’ 2451 | g_hash_table_replace(da->sent_message_ids, guid, TRUE);
In file included from /usr/include/glib-2.0/glib.h:50,
/usr/include/glib-2.0/glib/ghash.h:73:61: note: expected ‘gpointer’ {aka ‘void *’} but argument is of type ‘int’ 73 | gpointer value);
libgroupme.c: In function ‘groupme_send_im’: libgroupme.c:2533:18: warning: unused variable ‘msg’ [-Wunused-variable] 2533 | PurpleMessage *msg = purple_message_new_outgoing(who, message, flags);
libgroupme.c: In function ‘groupme_get_info’: libgroupme.c:2609:9: warning: unused variable ‘url’ [-Wunused-variable] 2609 | gchar *url;
At top level: libgroupme.c:2178:1: warning: ‘groupme_set_room_last_id’ defined but not used [-Wunused-function] 2178 | groupme_set_room_last_id(GroupMeAccount *da, guint64 id, guint64 last_id)
libgroupme.c:2149:1: warning: ‘groupme_get_room_last_id’ defined but not used [-Wunused-function] 2149 | groupme_get_room_last_id(GroupMeAccount *da, guint64 id)
libgroupme.c:2131:1: warning: ‘groupme_got_history_static’ defined but not used [-Wunused-function] 2131 | groupme_got_history_static(GroupMeAccount *da, JsonNode *node, gpointer user_data)
libgroupme.c:1173:1: warning: ‘groupme_normalise_room_name’ defined but not used [-Wunused-function] 1173 | groupme_normalise_room_name(const gchar *guild_name, const gchar *name)
libgroupme.c:1013:1: warning: ‘groupme_set_group_typing’ defined but not used [-Wunused-function] 1013 | groupme_set_group_typing(void *_u)
make: *** No rule to make target 'groupme16.png', needed by 'install-icons'. Stop.