VS警告等级W0

关 : 关闭所有警告(/W0) : 关闭所有警告消息的显示。 
1 级(/W1) : 显示严重的警告消息。 
2 级(/W2) : 显示等级 1 警告以及某些不太严重的警告,如关于隐藏类成员的警告。这是命令行中的默认警告等级。 
3 级(/W3) : 显示等级 2 警告以及某些不太严重的警告,如有关总是计算为真或假的表达式的警告。 
4 级(/W4) : 显示所有等级 3 警告以及信息性警告。

vs默认等级为/W3, 调试时不想出太多警告信息可以设为/W1,比如不想看见“使用未初始化的变量”警告信息刷屏, 发布时最好设为/W4.

Specifies the highest level of warning generated by the compiler. Valid warning levels for n range from 0 to 4:

 Level 0 disables all warnings.

 Level 1 displays severe warnings. Level 1 is the default warning level at the command line.

 Level 2 displays all level 1 warnings and warnings less severe than level 1.

 Level 3 displays all level 2 warnings and all other warnings recommended for production purposes.

 Level 4 displays all level 3 warnings plus informational warnings, which in most cases can be safely ignored. This option should be used only to provide "lint" level warnings and is not recommended as your usual warning level setting.

 For a new project, it may be best to use /W4 in all compilations. This will ensure the fewest possible hard-to-find code defects.

这里写图片描述



http://bbs.csdn.net/topics/320032462


  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值