Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix GSL_SUPPRESS definition on Intel C++ Compiler#906

Merged
JordanMaples merged 1 commit into
microsoft:masterfrom
TManhente:intel_suppress_fix
Aug 5, 2020
Merged

Fix GSL_SUPPRESS definition on Intel C++ Compiler#906
JordanMaples merged 1 commit into
microsoft:masterfrom
TManhente:intel_suppress_fix

Conversation

@TManhente
Copy link
Copy Markdown
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
Copy Markdown
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