discord-websockets.c: In function ‘discord_ws_set_status’: discord-websockets.c:349:57: warning: format ‘%tu’ expects argument of type ‘unsigned ptrdiff_t’, but argument 4 has type ‘long int’ [-Wformat=]
g_string_printf(buf, "{\"op\":%d,\"d\":{\"since\":%tu,\"game\": \"name\":\"%s\",\"type\":0},\"afk\":true,\"status\":\"idle\"}}", OPCODE_STATUS_UPDATE, time(NULL)*1000, msg);
^
While compiling, I got:
May I suggest