Skip to content

Commit

Permalink
Workaround for broken [[deprecated]] in PGI compiler (fmtlib#1581)
Browse files Browse the repository at this point in the history
* Workaround broken [[deprecated]] in PGI compiler
  - similar to Intel and NVCC, add workaround for PGI compiler
  • Loading branch information
pramodk authored and Thomas Bernard committed Mar 18, 2020
1 parent 0e25ec9 commit 4db0248
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions include/fmt/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@
# endif
#endif

// Workaround broken [[deprecated]] in the Intel compiler and NVCC.
#if defined(__INTEL_COMPILER) || FMT_NVCC
// Workaround broken [[deprecated]] in the Intel, PGI and NVCC compiler
#if defined(__INTEL_COMPILER) || defined(__PGI) || FMT_NVCC
# define FMT_DEPRECATED_ALIAS
#else
# define FMT_DEPRECATED_ALIAS FMT_DEPRECATED
Expand Down Expand Up @@ -256,7 +256,8 @@ namespace internal {
// A workaround for gcc 4.8 to make void_t work in a SFINAE context.
template <typename... Ts> struct void_t_impl { using type = void; };

FMT_NORETURN FMT_API void assert_fail(const char* file, int line, const char* message);
FMT_NORETURN FMT_API void assert_fail(const char* file, int line,
const char* message);

#ifndef FMT_ASSERT
# ifdef NDEBUG
Expand Down

0 comments on commit 4db0248

Please sign in to comment.