Преглед изворни кода

Merge pull request #1487 from lioncash/maybe-unused

yuzu/main: Apply the [[maybe_unused]] attribute to the parameter of SetDiscordEnabled
bunnei пре 7 година
родитељ
комит
870c18b078
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/yuzu/main.cpp

+ 1 - 1
src/yuzu/main.cpp

@@ -1567,7 +1567,7 @@ void GMainWindow::UpdateUITheme() {
     emit UpdateThemedIcons();
 }
 
-void GMainWindow::SetDiscordEnabled(bool state) {
+void GMainWindow::SetDiscordEnabled([[maybe_unused]] bool state) {
 #ifdef USE_DISCORD_PRESENCE
     if (state) {
         discord_rpc = std::make_unique<DiscordRPC::DiscordImpl>();