Merge pull request #4343 from FearlessTobi/port-1487

Port yuzu-emu/yuzu#1487: "Apply the [[maybe_unused]] attribute to the parameter of SetDiscordEnabled()"
This commit is contained in:
Weiyi Wang 2018-10-16 11:07:31 -04:00 committed by GitHub
commit 2a7b87874b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1714,7 +1714,7 @@ void GMainWindow::RetranslateStatusBar() {
multiplayer_state->retranslateUi(); multiplayer_state->retranslateUi();
} }
void GMainWindow::SetDiscordEnabled(bool state) { void GMainWindow::SetDiscordEnabled([[maybe_unused]] bool state) {
#ifdef USE_DISCORD_PRESENCE #ifdef USE_DISCORD_PRESENCE
if (state) { if (state) {
discord_rpc = std::make_unique<DiscordRPC::DiscordImpl>(); discord_rpc = std::make_unique<DiscordRPC::DiscordImpl>();