Skip to content

Use Intel specific pragma to disable unknown attribute warning #278

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Nov 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 6 additions & 2 deletions inst/include/cpp11/R.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down