mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-05 03:21:42 +00:00
29 lines
1.0 KiB
Diff
29 lines
1.0 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Tyler Veness <calcmogul@gmail.com>
|
|
Date: Tue, 16 May 2023 13:49:18 -0700
|
|
Subject: [PATCH 2/2] Suppress warnings we can't fix
|
|
|
|
---
|
|
include/fmt/format.h | 7 +++++++
|
|
1 file changed, 7 insertions(+)
|
|
|
|
diff --git a/include/fmt/format.h b/include/fmt/format.h
|
|
index e5bd8b110efe49e12a12b004ea246a4dba671a6f..f11be0d6d58f3d992d7d06adb3d9576f81ecfe11 100644
|
|
--- a/include/fmt/format.h
|
|
+++ b/include/fmt/format.h
|
|
@@ -1324,7 +1324,14 @@ inline auto equal2(const char* lhs, const char* rhs) -> bool {
|
|
template <typename Char>
|
|
FMT_CONSTEXPR20 FMT_INLINE void copy2(Char* dst, const char* src) {
|
|
if (!is_constant_evaluated() && sizeof(Char) == sizeof(char)) {
|
|
+#if FMT_GCC_VERSION && FMT_GCC_VERSION >= 1000
|
|
+# pragma GCC diagnostic push
|
|
+# pragma GCC diagnostic ignored "-Wstringop-overflow"
|
|
+#endif
|
|
memcpy(dst, src, 2);
|
|
+#if FMT_GCC_VERSION && FMT_GCC_VERSION >= 1000
|
|
+# pragma GCC diagnostic pop
|
|
+#endif
|
|
return;
|
|
}
|
|
*dst++ = static_cast<Char>(*src++);
|