d*****u 发帖数: 17243 | 1 调试C++程序,里面上百个warning,很影响速度
我现在用的是VC++6.0,在linux上编译就完全没有这些warning
怎么关掉呢? |
x****u 发帖数: 44466 | 2 #pragma warning ...
【在 d*****u 的大作中提到】 : 调试C++程序,里面上百个warning,很影响速度 : 我现在用的是VC++6.0,在linux上编译就完全没有这些warning : 怎么关掉呢?
|
a****l 发帖数: 8211 | 3 this is not a good idea. The criteria in my company is: no warning is
permitted.
【在 d*****u 的大作中提到】 : 调试C++程序,里面上百个warning,很影响速度 : 我现在用的是VC++6.0,在linux上编译就完全没有这些warning : 怎么关掉呢?
|
n******t 发帖数: 4406 | 4 如果是编译C++,最好用高点版本的VC。
【在 d*****u 的大作中提到】 : 调试C++程序,里面上百个warning,很影响速度 : 我现在用的是VC++6.0,在linux上编译就完全没有这些warning : 怎么关掉呢?
|
x****u 发帖数: 44466 | 5 对于新代码来说这是不错的,但是绝不应该为了warning就去动老代码。
【在 a****l 的大作中提到】 : this is not a good idea. The criteria in my company is: no warning is : permitted.
|
O*******d 发帖数: 20343 | 6 有些警告是不可避免的。 例如,当你在debugger下用C++ STL, 就有警告说最长变量
名是256字符。长于256就会
被砍掉。出现这种警告是因为编译器把STL的变量名展开就会很长很长,除非两个变量
的名被砍掉后碰巧一样,这种警
告一般是完全可以忽略。
【在 a****l 的大作中提到】 : this is not a good idea. The criteria in my company is: no warning is : permitted.
|