Skip to content

Using supported syntax for restoring warnings - #9107

Merged
Ilya (iSazonov) merged 1 commit into
PowerShell:masterfrom
powercode:RestoreEnable
Mar 11, 2019
Merged

Ilya (iSazonov) merged 1 commit into
PowerShell:masterfrom
powercode:RestoreEnable

Conversation

@powercode

@powercode Staffan Gustafsson (powercode) commented Mar 10, 2019 •

Copy link
Copy Markdown
Collaborator

For some reason, a syntax for enabling warnings that isn't documented was used. Build errors with vs2019.

Restore is the documented way.

https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/preprocessor-directives/preprocessor-pragma-warning

PR Summary

PR Context

PR Checklist

…t enable.

Also removing the disabling
Restore is the documented way.
@iSazonov Ilya (iSazonov) added the CL-CodeCleanup Indicates that a PR should be marked as a Code Cleanup change in the Change Log label Mar 11, 2019
@iSazonov Ilya (iSazonov) self-assigned this Mar 11, 2019
@iSazonov
Ilya (iSazonov) merged commit 6c049d0 into PowerShell:master Mar 11, 2019
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj-contribs/PowerShell that referenced this pull request Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-CodeCleanup Indicates that a PR should be marked as a Code Cleanup change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants