From 1ffee71757d1733b33086acca1eafa1f7c0645ef Mon Sep 17 00:00:00 2001 From: Stenzek Date: Wed, 24 Jun 2026 17:11:11 +1000 Subject: [PATCH] Qt: Fix unused variable warning --- src/duckstation-qt/emulationsettingswidget.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/duckstation-qt/emulationsettingswidget.cpp b/src/duckstation-qt/emulationsettingswidget.cpp index 13f9cf142..2c43be88e 100644 --- a/src/duckstation-qt/emulationsettingswidget.cpp +++ b/src/duckstation-qt/emulationsettingswidget.cpp @@ -14,6 +14,7 @@ #include "moc_emulationsettingswidget.cpp" +namespace { struct SpeedControl { SettingsWindow* dialog; @@ -22,6 +23,7 @@ struct SpeedControl const char* setting_name; float default_value; }; +} // namespace static void UpdateSpeedControlState(const SpeedControl& control) { @@ -29,7 +31,6 @@ static void UpdateSpeedControlState(const SpeedControl& control) const float effective_value = control.dialog->getEffectiveFloatValue("Main", control.setting_name, control.default_value); const bool inherited = (control.dialog->isPerGameSettings() && !value.has_value()); - const bool unlimited = (value.value_or(effective_value) == 0.0f); QSignalBlocker spinbox_blocker(control.spinbox); QSignalBlocker checkbox_blocker(control.checkbox);