Spec clarification for scope of #pragma warning disable
#8731
Unanswered
ashmind
asked this question in
Language Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to clarify the spec so that
#pragma warning disable
is explicitly limited to a compilation unit?Current wording does not have any formal indication.
This would remove the need to do
#pragma warning restore
at the end of a file (when initialdisable
is intended for the whole file).Beta Was this translation helpful? Give feedback.
All reactions