List of #pragma warning disable codes and what they mean

前端 未结 4 1830
独厮守ぢ
独厮守ぢ 2021-01-01 11:17

The syntax for disabling warnings is as follows:

#pragma warning disable 414, 3021

Or, expressed more generally:

#pragma wa         


        
4条回答
  •  南方客
    南方客 (楼主)
    2021-01-01 12:19

    FYI -

    If you're using Visual Studio 2008, you can get the code directly from the Error List by right-clicking the error, and selecting Show Error Help from the context menu. The Help window should pop up, and show you everything you ever wanted to know about the error a la the MSDN website.

    Could save you a bit of time.

提交回复
热议问题