Skip to content
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

Fix GSL_SUPPRESS definition on Intel C++ Compiler #906

Merged
merged 1 commit into from
Aug 5, 2020

Conversation

TManhente
Copy link
Contributor

Intel C++ Compiler defines the _MSC_VER macro, but it doesn't support [[gsl::*]] attributes.

This fix makes GSL_SUPPRESS expand to nothing on Intel Compiler, solving the following warnings:

gsl/span(301): error #3924: attribute namespace "gsl" is unrecognized
          GSL_SUPPRESS(bounds.1) // NO-FORMAT: attribute
          ^

This closes #903.

Intel C++ Compiler defines the `_MSC_VER` macro, but it doesn't support `[[gsl::*]]` attributes.
@JordanMaples JordanMaples self-assigned this Aug 5, 2020
@JordanMaples
Copy link
Contributor

Maintainers' call: Looks good, I'll merge it as soon as appveyor completes. Thanks!

@JordanMaples JordanMaples added this to the 2020Q3 milestone Aug 5, 2020
@JordanMaples JordanMaples merged commit f8d9f2e into microsoft:master Aug 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GSL_SUPPRESS raises unknown attribute warnings on Intel C++ Compiler
2 participants