diff --git a/NEWS.md b/NEWS.md index 32184511..d73c0d3d 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,8 @@ # cpp11 (development version) +* Silenced an unknown attribute warning specific to the Intel compiler + (r-lib/systemfonts#98). + # cpp11 0.4.3 * Modernized the GitHub Actions workflows and updated some internal tests to diff --git a/inst/include/cpp11/R.hpp b/inst/include/cpp11/R.hpp index 463256d3..7ff355e1 100644 --- a/inst/include/cpp11/R.hpp +++ b/inst/include/cpp11/R.hpp @@ -13,12 +13,16 @@ #include "Rinternals.h" // clang-format off -#ifdef __clang__ +#if defined(__INTEL_COMPILER) +# pragma warning(disable : 3924) +#endif + +#if defined(__clang__) # pragma clang diagnostic push # pragma clang diagnostic ignored "-Wattributes" #endif -#ifdef __GNUC__ +#if defined(__GNUC__) && !defined(__clang__) && !defined(__INTEL_COMPILER) # pragma GCC diagnostic push # pragma GCC diagnostic ignored "-Wattributes" #endif