mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-30 02:31:44 +00:00
[upstream_utils] Upgrade to fmt 11.1.0 (#7593)
Usage of FMT_STRING() was removed since it caused compilation failures, and https://fmt.dev/11.1/api/#compile-time-checks says it's no longer necessary for compile-time format strings. Fixes #7592.
This commit is contained in:
@@ -66,11 +66,10 @@ class Logger {
|
||||
#pragma clang diagnostic ignored "-Wgnu-zero-variadic-macro-arguments"
|
||||
#endif
|
||||
|
||||
#define WPI_LOG(logger_inst, level, format, ...) \
|
||||
if ((logger_inst).HasLogger() && level >= (logger_inst).min_level()) { \
|
||||
(logger_inst) \
|
||||
.Log(level, __FILE__, __LINE__, \
|
||||
FMT_STRING(format) __VA_OPT__(, ) __VA_ARGS__); \
|
||||
#define WPI_LOG(logger_inst, level, format, ...) \
|
||||
if ((logger_inst).HasLogger() && level >= (logger_inst).min_level()) { \
|
||||
(logger_inst) \
|
||||
.Log(level, __FILE__, __LINE__, format __VA_OPT__(, ) __VA_ARGS__); \
|
||||
}
|
||||
|
||||
#define WPI_ERROR(inst, format, ...) \
|
||||
|
||||
Reference in New Issue
Block a user