From 73f3bd686ea26072e0fc206bec47db650a2968ad Mon Sep 17 00:00:00 2001 From: tqcq <99722391+tqcq@users.noreply.github.com> Date: Tue, 5 Dec 2023 14:39:35 +0800 Subject: [PATCH] fix FMT_MAYBE_UNUSED on mipsel --- 3party/fmt/fmt/format.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/3party/fmt/fmt/format.h b/3party/fmt/fmt/format.h index 561a9e0..431d00b 100644 --- a/3party/fmt/fmt/format.h +++ b/3party/fmt/fmt/format.h @@ -162,7 +162,8 @@ typedef __int64 intmax_t; #endif #ifdef FMT_HAS_CXX17_ATTRIBUTE_MAYBE_UNUSED -# define FMT_MAYBE_UNUSED [[maybe_unused]] +// # define FMT_MAYBE_UNUSED [[maybe_unused]] +# define FMT_MAYBE_UNUSED // g++/clang++ also support [[gnu::unused]]. However, we don't use it. #elif defined(__GNUC__) # define FMT_MAYBE_UNUSED __attribute__((unused))