How can I disable annotation compiler warnings globally.

Gavin Williams 761 Reputation points
2023-11-13T03:16:30.12+00:00

In WinMain, the compiler is giving me warning C28252, telling me to use in/out annotations on the parameters. But I don't use them, I have no need for them. How can I disable this particular warning for the whole project?

Windows for business | Windows Client for IT Pros | User experience | Other
Developer technologies | C++
Developer technologies | Visual Studio | Other
0 comments No comments
{count} votes

Accepted answer
  1. Minxin Yu 13,506 Reputation points Microsoft External Staff
    2023-11-13T03:42:22.1466667+00:00

    Hi, @Gavin Williams

    Use Disable Specific Warnings box: Suppress specific warnings for C++
    User's image

    Best regards,

    Minxin Yu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.