diff --git a/src/modules/mpd/state.cpp b/src/modules/mpd/state.cpp index 4d1e8c91..aa1a18f8 100644 --- a/src/modules/mpd/state.cpp +++ b/src/modules/mpd/state.cpp @@ -10,6 +10,13 @@ namespace waybar::modules { } // namespace waybar::modules #endif +#if FMT_VERSION >= 90000 +/* Satisfy fmt 9.x deprecation of implicit conversion of enums to int */ +auto format_as(enum mpd_idle val) { + return static_cast>(val); +} +#endif + namespace waybar::modules::detail { #define IDLE_RUN_NOIDLE_AND_CMD(...) \