Setting Visual C++ Studio/Express to strict ANSI mode

后端 未结 3 2098
-上瘾入骨i
-上瘾入骨i 2021-01-18 06:26

I generally program & compile under Linux with gcc and -ansi flag; but I\'ve been forced with doing a job in Visual C++ and whenever I compile my C code I get all the Mi

3条回答
  •  遇见更好的自我
    2021-01-18 06:59

    One way to suppress specific warnings is to add something like the following to the source.

    #if defined( _WIN32 )
    #pragma warning(disable:4996)
    #endif
    

提交回复
热议问题