mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[wpiutil] Upgrade to fmt 9.0.0 (#4337)
fmt removed fmt::make_args_checked since it's no longer needed for constexpr format string checks. fmt deprecated implicit conversions from enums to integers in format arguments, so I added explicit static casts.
This commit is contained in:
@@ -179,8 +179,7 @@ static void ReportJoystickUnpluggedErrorV(fmt::string_view format,
|
||||
template <typename S, typename... Args>
|
||||
static inline void ReportJoystickUnpluggedError(const S& format,
|
||||
Args&&... args) {
|
||||
ReportJoystickUnpluggedErrorV(
|
||||
format, fmt::make_args_checked<Args...>(format, args...));
|
||||
ReportJoystickUnpluggedErrorV(format, fmt::make_format_args(args...));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -194,8 +193,7 @@ static void ReportJoystickUnpluggedWarningV(fmt::string_view format,
|
||||
template <typename S, typename... Args>
|
||||
static inline void ReportJoystickUnpluggedWarning(const S& format,
|
||||
Args&&... args) {
|
||||
ReportJoystickUnpluggedWarningV(
|
||||
format, fmt::make_args_checked<Args...>(format, args...));
|
||||
ReportJoystickUnpluggedWarningV(format, fmt::make_format_args(args...));
|
||||
}
|
||||
|
||||
static int& GetDSLastCount() {
|
||||
|
||||
Reference in New Issue
Block a user