fix: fmt 9.x deprecation warning for implicit enum conversions

This commit is contained in:
Aleksei Bavshin 2022-07-13 22:34:29 -07:00
parent 3117aefdf3
commit a44622aa9f
No known key found for this signature in database
GPG Key ID: 4F071603387A382A
1 changed files with 7 additions and 0 deletions

View File

@ -10,6 +10,13 @@ namespace waybar::modules {
} // namespace waybar::modules } // namespace waybar::modules
#endif #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<std::underlying_type_t<enum mpd_idle>>(val);
}
#endif
namespace waybar::modules::detail { namespace waybar::modules::detail {
#define IDLE_RUN_NOIDLE_AND_CMD(...) \ #define IDLE_RUN_NOIDLE_AND_CMD(...) \