mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-06 03:31:43 +00:00
[upstream_utils] Upgrade to fmt 12.1.0 (#8312)
This commit is contained in:
@@ -34,7 +34,7 @@ def copy_upstream_src(wpilib_root: Path):
|
||||
def main():
|
||||
name = "fmt"
|
||||
url = "https://github.com/fmtlib/fmt"
|
||||
tag = "12.0.0"
|
||||
tag = "12.1.0"
|
||||
|
||||
fmt = Lib(name, url, tag, copy_upstream_src)
|
||||
fmt.main()
|
||||
|
||||
22
upstream_utils/fmt_patches/0001-Suppress-nodiscard.patch
Normal file
22
upstream_utils/fmt_patches/0001-Suppress-nodiscard.patch
Normal file
@@ -0,0 +1,22 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Tyler Veness <calcmogul@gmail.com>
|
||||
Date: Fri, 31 Oct 2025 14:53:37 -0700
|
||||
Subject: [PATCH] Suppress nodiscard
|
||||
|
||||
---
|
||||
include/fmt/base.h | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/include/fmt/base.h b/include/fmt/base.h
|
||||
index 0d57867782fcf571e7581b2bc70fa04bf43e4ccc..6a222b50eb515486a47dd5f37b94665e7f3ffef8 100644
|
||||
--- a/include/fmt/base.h
|
||||
+++ b/include/fmt/base.h
|
||||
@@ -927,7 +927,7 @@ class locale_ref {
|
||||
template <typename Locale, FMT_ENABLE_IF(sizeof(Locale::collate) != 0)>
|
||||
locale_ref(const Locale& loc) : locale_(&loc) {
|
||||
// Check if std::isalpha is found via ADL to reduce the chance of misuse.
|
||||
- isalpha('x', loc);
|
||||
+ static_cast<void>(isalpha('x', loc));
|
||||
}
|
||||
|
||||
inline explicit operator bool() const noexcept { return locale_ != nullptr; }
|
||||
Reference in New Issue
Block a user