fix FMT_MAYBE_UNUSED on mipsel
Some checks failed
rpcrypto-build / build (Release, hisiv500.toolchain.cmake) (push) Waiting to run
rpcrypto-build / build (Release, hisiv510.toolchain.cmake) (push) Waiting to run
rpcrypto-build / build (Release, host-afl.toolchain.cmake) (push) Waiting to run
rpcrypto-build / build (Release, host.toolchain.cmake) (push) Waiting to run
rpcrypto-build / build (Release, mips64el-linux-gnuabi64.toolchain.cmake) (push) Waiting to run
rpcrypto-build / build (Release, mipsel-openwrt-linux-musl.toolchain.cmake) (push) Waiting to run
rpcrypto-build / build (Release, mipsel-openwrt-linux.toolchain.cmake) (push) Waiting to run
rpcrypto-build / build (Debug, hisiv500.toolchain.cmake) (push) Successful in 1m3s
rpcrypto-build / build (Debug, host-afl.toolchain.cmake) (push) Failing after 8s
rpcrypto-build / build (Debug, himix200.toolchain.cmake) (push) Successful in 1m20s
rpcrypto-build / build (Debug, hisiv510.toolchain.cmake) (push) Successful in 1m20s
rpcrypto-build / build (Debug, mips64el-linux-gnuabi64.toolchain.cmake) (push) Successful in 1m21s
rpcrypto-build / build (Debug, mipsel-openwrt-linux-musl.toolchain.cmake) (push) Successful in 1m22s
rpcrypto-build / build (Debug, mipsel-openwrt-linux.toolchain.cmake) (push) Has been cancelled
rpcrypto-build / build (Release, himix200.toolchain.cmake) (push) Has been cancelled
rpcrypto-build / build (Debug, host.toolchain.cmake) (push) Has been cancelled

This commit is contained in:
tqcq 2023-12-05 14:39:35 +08:00
parent 5904b19436
commit 73f3bd686e

View File

@ -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))