From 265c93684baa130a69fc8a7512d499b16c1b47dc Mon Sep 17 00:00:00 2001 From: Pramod Kumbhar Date: Sun, 8 Mar 2020 00:20:54 +0100 Subject: [PATCH] Workaround broken [[deprecated]] in PGI compiler - similar to Intel and NVCC, add workaround for PGI compiler --- include/fmt/core.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index 0e6422d9..b14fa476 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -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 compiler, PGI compiler and NVCC. +#if defined(__INTEL_COMPILER) || defined(__PGI) || FMT_NVCC # define FMT_DEPRECATED_ALIAS #else # define FMT_DEPRECATED_ALIAS FMT_DEPRECATED