forked from fmtlib/fmt
Move FMT_MAYBE_UNUSED to where it's actually used
This commit is contained in:
@ -148,14 +148,6 @@
|
|||||||
# define FMT_NORETURN
|
# define FMT_NORETURN
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef FMT_MAYBE_UNUSED
|
|
||||||
# if FMT_HAS_CPP17_ATTRIBUTE(maybe_unused)
|
|
||||||
# define FMT_MAYBE_UNUSED [[maybe_unused]]
|
|
||||||
# else
|
|
||||||
# define FMT_MAYBE_UNUSED
|
|
||||||
# endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef FMT_DEPRECATED
|
#ifndef FMT_DEPRECATED
|
||||||
# if FMT_HAS_CPP14_ATTRIBUTE(deprecated) || FMT_MSC_VER >= 1900
|
# if FMT_HAS_CPP14_ATTRIBUTE(deprecated) || FMT_MSC_VER >= 1900
|
||||||
# define FMT_DEPRECATED [[deprecated]]
|
# define FMT_DEPRECATED [[deprecated]]
|
||||||
@ -170,6 +162,13 @@
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Workaround broken [[deprecated]] in the Intel, PGI and NVCC compilers.
|
||||||
|
#if FMT_ICC_VERSION || defined(__PGI) || FMT_NVCC
|
||||||
|
# define FMT_DEPRECATED_ALIAS
|
||||||
|
#else
|
||||||
|
# define FMT_DEPRECATED_ALIAS FMT_DEPRECATED
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef FMT_INLINE
|
#ifndef FMT_INLINE
|
||||||
# if FMT_GCC_VERSION && FMT_USE_CONSTEXPR
|
# if FMT_GCC_VERSION && FMT_USE_CONSTEXPR
|
||||||
# define FMT_INLINE inline __attribute__((always_inline))
|
# define FMT_INLINE inline __attribute__((always_inline))
|
||||||
@ -178,13 +177,6 @@
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Workaround broken [[deprecated]] in the Intel, PGI and NVCC compilers.
|
|
||||||
#if FMT_ICC_VERSION || defined(__PGI) || FMT_NVCC
|
|
||||||
# define FMT_DEPRECATED_ALIAS
|
|
||||||
#else
|
|
||||||
# define FMT_DEPRECATED_ALIAS FMT_DEPRECATED
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef FMT_BEGIN_NAMESPACE
|
#ifndef FMT_BEGIN_NAMESPACE
|
||||||
# if FMT_HAS_FEATURE(cxx_inline_namespaces) || FMT_GCC_VERSION >= 404 || \
|
# if FMT_HAS_FEATURE(cxx_inline_namespaces) || FMT_GCC_VERSION >= 404 || \
|
||||||
FMT_MSC_VER >= 1900
|
FMT_MSC_VER >= 1900
|
||||||
|
@ -88,6 +88,14 @@
|
|||||||
# define FMT_FALLTHROUGH
|
# define FMT_FALLTHROUGH
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef FMT_MAYBE_UNUSED
|
||||||
|
# if FMT_HAS_CPP17_ATTRIBUTE(maybe_unused)
|
||||||
|
# define FMT_MAYBE_UNUSED [[maybe_unused]]
|
||||||
|
# else
|
||||||
|
# define FMT_MAYBE_UNUSED
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef FMT_THROW
|
#ifndef FMT_THROW
|
||||||
# if FMT_EXCEPTIONS
|
# if FMT_EXCEPTIONS
|
||||||
# if FMT_MSC_VER || FMT_NVCC
|
# if FMT_MSC_VER || FMT_NVCC
|
||||||
|
Reference in New Issue
Block a user