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

Suppress some noisy / buggy warnings #1136

Merged

Conversation

dmitrykobets-msft
Copy link
Member

@dmitrykobets-msft dmitrykobets-msft commented Sep 7, 2023

Two warnings were being emitted in the MSVC+LLVM tests.

The warning -Wunsafe-buffer-usage is initially introduced in some capacity here https://reviews.llvm.org/D137346 pointing to documentation at https://discourse.llvm.org/t/rfc-c-buffer-hardening/65734. The warning is a stylistic checker whose goal is to "emit a warning every time an unsafe operation is performed on a raw pointer". This type of programming model is not useful for library implementations of types such as span, where direct manipulation of raw pointers is inevitable, so disable the warning altogether.

There is also a false-positive warning llvm/llvm-project#65689 that I've disabled inline.

@dmitrykobets-msft dmitrykobets-msft marked this pull request as ready for review September 11, 2023 17:06
@dmitrykobets-msft dmitrykobets-msft merged commit 2940006 into microsoft:main Sep 11, 2023
66 checks passed
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.

None yet

1 participant