-
Notifications
You must be signed in to change notification settings - Fork 1.6k
<string_view>
: suppress warning about annotation 'NullTerminated'
#3032
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
Conversation
Perhaps we can use |
Co-authored-by: Casey Carter <[email protected]>
<string_view>
: suppress warning about annotation 'NullTerminated'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few extraneous std::
-qualifications, I'll apply changes.
I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed. |
Thanks for nulling out this warning! |
Fixes warning C6510: Invalid annotation: 'NullTerminated' property may only be used on buffers whose elements are of integral or pointer type: Function
'{ctor}' _Param_(1)
.https://gcc.godbolt.org/z/bPqs167he
Can we do something else and don't remove the annotation but fix the warning?
Found in one of LLVM tests.