From b85758ec19ab37a317662eb93d7208eaae129e84 Mon Sep 17 00:00:00 2001 From: Ben Morse Date: Tue, 9 Jan 2018 10:41:16 -0800 Subject: [PATCH] fix decls --- examples/send-presence/send-presence.c | 2 +- src/discord-rpc.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/send-presence/send-presence.c b/examples/send-presence/send-presence.c index 0635b1d..fcc8c41 100644 --- a/examples/send-presence/send-presence.c +++ b/examples/send-presence/send-presence.c @@ -57,7 +57,7 @@ static void updateDiscordPresence() } } -static void handleDiscordReady() +static void handleDiscordReady(void) { printf("\nDiscord: ready\n"); } diff --git a/src/discord-rpc.cpp b/src/discord-rpc.cpp index c986e07..55829c8 100644 --- a/src/discord-rpc.cpp +++ b/src/discord-rpc.cpp @@ -304,7 +304,7 @@ extern "C" DISCORD_EXPORT void Discord_Initialize(const char* applicationId, IoThread.Start(); } -extern "C" DISCORD_EXPORT void Discord_Shutdown() +extern "C" DISCORD_EXPORT void Discord_Shutdown(void) { if (!Connection) { return; @@ -325,7 +325,7 @@ extern "C" DISCORD_EXPORT void Discord_UpdatePresence(const DiscordRichPresence* SignalIOActivity(); } -extern "C" DISCORD_EXPORT void Discord_ClearPresence() +extern "C" DISCORD_EXPORT void Discord_ClearPresence(void) { Discord_UpdatePresence(nullptr); } @@ -345,7 +345,7 @@ extern "C" DISCORD_EXPORT void Discord_Respond(const char* userId, /* DISCORD_RE } } -extern "C" DISCORD_EXPORT void Discord_RunCallbacks() +extern "C" DISCORD_EXPORT void Discord_RunCallbacks(void) { // Note on some weirdness: internally we might connect, get other signals, disconnect any number // of times inbetween calls here. Externally, we want the sequence to seem sane, so any other