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?

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,092 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,317 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
6,751 questions
0 comments No comments
{count} votes

Accepted answer
  1. Minxin Yu 8,106 Reputation points Microsoft Vendor
    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