mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
fix: fmt 9.x deprecation warning for implicit enum conversions
This commit is contained in:
parent
3117aefdf3
commit
a44622aa9f
@ -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<std::underlying_type_t<enum mpd_idle>>(val);
|
||||
}
|
||||
#endif
|
||||
|
||||
namespace waybar::modules::detail {
|
||||
|
||||
#define IDLE_RUN_NOIDLE_AND_CMD(...) \
|
||||
|
Loading…
Reference in New Issue
Block a user