Skip to content

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