Skip to content

Commit 4f332df

Browse files
committed
Use Intel specific pragma to disable unknown attribute warning
1 parent 2aba46e commit 4f332df

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

inst/include/cpp11/R.hpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,16 @@
1313
#include "Rinternals.h"
1414

1515
// clang-format off
16-
#ifdef __clang__
16+
#if defined(__INTEL_COMPILER)
17+
# pragma warning(disable : 3924)
18+
#endif
19+
20+
#if defined(__clang__)
1721
# pragma clang diagnostic push
1822
# pragma clang diagnostic ignored "-Wattributes"
1923
#endif
2024

21-
#ifdef __GNUC__
25+
#if defined(__GNUC__) && !defined(__clang__) && !defined(__INTEL_COMPILER)
2226
# pragma GCC diagnostic push
2327
# pragma GCC diagnostic ignored "-Wattributes"
2428
#endif

0 commit comments

Comments
 (0)