From 6ed561b60839080a010eeec318bdd2c990dbac54 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Tue, 23 Nov 2021 11:15:04 -0500 Subject: [PATCH] Disable warnings in discord status updater. --- src/discord.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/discord.cpp b/src/discord.cpp index aa89921d..1c7a8585 100644 --- a/src/discord.cpp +++ b/src/discord.cpp @@ -80,7 +80,7 @@ static void run() { #if defined ARCH_LIN || defined ARCH_MAC int fd = socket(AF_UNIX, SOCK_STREAM, 0); if (fd < 0) { - WARN("Could not open Discord socket"); + // WARN("Could not open Discord socket"); return; } DEFER({close(fd);}); @@ -123,14 +123,14 @@ static void run() { json_object_set(handshakeJ, "client_id", json_string(CLIENT_ID)); DEFER({json_decref(handshakeJ);}); if (sendJson(fd, 0, handshakeJ)) { - WARN("Could not request Discord handshake"); + // WARN("Could not request Discord handshake"); return; } // Receive handshake response json_t* handshakeResJ = receiveJson(fd); if (!handshakeResJ) { - WARN("Could not receive Discord handshake response"); + // WARN("Could not receive Discord handshake response"); return; } DEFER({json_decref(handshakeResJ);}); @@ -155,14 +155,14 @@ static void run() { } DEFER({json_decref(payloadJ);}); if (sendJson(fd, 1, payloadJ)) { - WARN("Could not set activity on Discord"); + // WARN("Could not set activity on Discord"); return; } // Receive activity response json_t* payloadResJ = receiveJson(fd); if (!payloadResJ) { - WARN("Could not receive Discord activity response"); + // WARN("Could not receive Discord activity response"); return; } DEFER({json_decref(payloadResJ);});