diff --git a/modules/juce_core/containers/juce_ScopedValueSetter.h b/modules/juce_core/containers/juce_ScopedValueSetter.h index 012e6b1d60..6e22f22e96 100644 --- a/modules/juce_core/containers/juce_ScopedValueSetter.h +++ b/modules/juce_core/containers/juce_ScopedValueSetter.h @@ -63,7 +63,7 @@ namespace juce @tags{Core} */ template -class ScopedValueSetter +class [[nodiscard]] ScopedValueSetter { public: /** Creates a ScopedValueSetter that will immediately change the specified value to the