Commit aaeca12d authored by Victor Zverovich's avatar Victor Zverovich

Move FMT_MAYBE_UNUSED to format.h where it is used

parent 3d0c7ae3
...@@ -159,14 +159,6 @@ ...@@ -159,14 +159,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
#if __cplusplus == 201103L || __cplusplus == 201402L #if __cplusplus == 201103L || __cplusplus == 201402L
# if defined(__INTEL_COMPILER) || defined(__PGI) # if defined(__INTEL_COMPILER) || defined(__PGI)
# define FMT_FALLTHROUGH # define FMT_FALLTHROUGH
......
...@@ -128,6 +128,14 @@ FMT_END_NAMESPACE ...@@ -128,6 +128,14 @@ FMT_END_NAMESPACE
# endif # endif
#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
// Workaround broken [[deprecated]] in the Intel, PGI and NVCC compilers. // Workaround broken [[deprecated]] in the Intel, PGI and NVCC compilers.
#if FMT_ICC_VERSION || defined(__PGI) || FMT_NVCC #if FMT_ICC_VERSION || defined(__PGI) || FMT_NVCC
# define FMT_DEPRECATED_ALIAS # define FMT_DEPRECATED_ALIAS
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment