博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Windows下的编译选项:/WX, /wd
阅读量:4181 次
发布时间:2019-05-26

本文共 1819 字,大约阅读时间需要 6 分钟。

原文:

 

Option

Description

/w

Disables all compiler warnings.

/W n

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.

/Wall

Enables all warnings, including those disabled by default. See .

/WX

Treats all compiler warnings as errors. For a new project, it may be best to use /WX in all compilations; resolving all warnings will ensure the fewest possible hard-to-find code defects.

The linker also has a /WX option; see  for more information.

/w ln

Specifies the level for a particular warning. The first parameter sets the warning level (same as /Wn) and the second parameter is the actual warning number.

For example, /w14326 causes C4326 to be generated as a level 1 warning.

/wd n

Disables the specified compiler warning where nis the compiler warning number.

For example, /wd4326 disables compiler warning C4326.

/we n

Treats the specific compiler warning as an error where n is a compiler warning.

For example, /we4326 flags warning number C4326 as an error.

/wo n

Reports the error only once where n is a compiler warning.

For example, /wo4326 will cause warning C4326 to be reported only once.

 

转载地址:http://qxhai.baihongyu.com/

你可能感兴趣的文章
哪些场景下使用MongoDB
查看>>
MySql 存储引擎的选取
查看>>
MongoDB 表设计
查看>>
MongoDB存储引擎选择
查看>>
MongoDB 那些坑
查看>>
Centos 7搭建Gitlab服务器超详细
查看>>
vue入门教程+实战+Vue2+VueRouter2+webpack
查看>>
spring-redis序列化
查看>>
各种乱码问题及原理,很全面
查看>>
tcp_timestamps tcp_tw_recycle引起的服务器连接不上问题
查看>>
windows下ES和head插件的安装
查看>>
RAP一种更高效的前后端接口对接解决方案
查看>>
ELK(ElasticSearch, Logstash, Kibana)搭建实时日志分析平台
查看>>
ELK搭建教程(全过程)
查看>>
maven私服搭建使用
查看>>
Netty学习路线总结
查看>>
基于mybatis拦截器实现数据权限
查看>>
分布式文件系统FastDFS详解
查看>>
centos7上rabbitmq搭建
查看>>
rabbitmq集成spring的xml配置和java代码
查看>>