由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - visual studio 编译器怎么关掉warning?
相关主题
求助:一个Visual C++ 9.0下编译OpenGL code的问题我写的C++ ParallelForLoop,感兴趣的来下载测试
[合集] Intel 9编译器在vc 6.0的环境里编译openmp的问题size of structure
C怪问题一个Segmentation fault
急!问个有关aligment的问题。what is the meaning of this macro in visual studio, thanks
谁在Xeon Phi上用过MKLstl的map可以嵌套几层?
visual studio 2005怎么不让自动添加#pragma once?无法编译一个文件
A helloworld OpenMP question?c++,这种做法不行?
请大牛们帮忙看一段并行c++代码的效率问题如何用 preprocessor unroll for loop?
相关话题的讨论汇总
话题: warning话题: c++话题: 编译器话题: 关掉话题: visual
进入Programming版参与讨论
1 (共1页)
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.

1 (共1页)
进入Programming版参与讨论
相关主题
如何用 preprocessor unroll for loop?谁在Xeon Phi上用过MKL
求助:expected class name before "(" tokenvisual studio 2005怎么不让自动添加#pragma once?
问一个gcc下bit field的对齐问题A helloworld OpenMP question?
请大牛们帮忙看一段openmp并行代码的问题请大牛们帮忙看一段并行c++代码的效率问题
求助:一个Visual C++ 9.0下编译OpenGL code的问题我写的C++ ParallelForLoop,感兴趣的来下载测试
[合集] Intel 9编译器在vc 6.0的环境里编译openmp的问题size of structure
C怪问题一个Segmentation fault
急!问个有关aligment的问题。what is the meaning of this macro in visual studio, thanks
相关话题的讨论汇总
话题: warning话题: c++话题: 编译器话题: 关掉话题: visual