当前位置: 首页 > news >正文

海城市网站建设幸福人寿保险公司官方网站电子保单打印

海城市网站建设,幸福人寿保险公司官方网站电子保单打印,企业做网站建设的好处,百度wordpress插件下载地址各个层次的gcc警告 从上到下覆盖 变量(代码)级:指定某个变量警告 int a __attribute__ ((unused)); 指定该变量为未使用的.即使这个变量没有被使用,编译时也会忽略则个警告输出. 文件级:在源代码文件中诊断(忽略/警告) 语法: #pragma GCC diagnostic [er…各个层次的gcc警告 从上到下覆盖 变量(代码)级:指定某个变量警告 int a __attribute__ ((unused)); 指定该变量为未使用的.即使这个变量没有被使用,编译时也会忽略则个警告输出. 文件级:在源代码文件中诊断(忽略/警告) 语法: #pragma GCC diagnostic [error|warning|ignored] -W警告选项 诊断-忽略:(关闭警告) #pragma  GCC diagnostic ignored  -Wunused #pragma  GCC diagnostic ignored  -Wunused-parameter 诊断-警告:(开启警告) #pragma  GCC diagnostic warning  -Wunused #pragma  GCC diagnostic warning  -Wunused-parameter 诊断-错误:(开启警告-升级为错误) #pragma  GCC diagnostic error  -Wunused #pragma  GCC diagnostic error  -Wunused-parameter 用法: 在文件开头处关闭警告,在文件结尾出再开启警告,这样可以忽略该文件中的指定警告. 项目级:命令行/编译参数指定 警告: gcc main.c -Wall 忽略: gcc mian.c -Wall -Wno-unused-parameter //开去all警告,但是忽略 -unused-parameter警告 选项格式: -W[no-]警告选项 如 : -Wno-unused-parameter # no- 表示诊断时忽略这个警告 来源https://github.com/zodiac1111/note/blob/master/note/gcc/gcc-ignored-warning.markdown#%E6%96%87%E4%BB%B6%E7%BA%A7%E5%9C%A8%E6%BA%90%E4%BB%A3%E7%A0%81%E6%96%87%E4%BB%B6%E4%B8%AD%E8%AF%8A%E6%96%AD%E5%BF%BD%E7%95%A5%E8%AD%A6%E5%91%8A 6.59.10 Diagnostic Pragmas GCC allows the user to selectively enable or disable certain types of diagnostics, and change the kind of the diagnostic. For example, a projects policy might require that all sources compile with -Werror but certain files might have exceptions allowing specific types of warnings. Or, a project might selectively enable diagnostics and treat them as errors depending on which preprocessor macros are defined. #pragma GCC diagnostic kind optionModifies the disposition of a diagnostic. Note that not all diagnostics are modifiable; at the moment only warnings (normally controlled by ‘-W...’) can be controlled, and not all of them. Use -fdiagnostics-show-option to determine which diagnostics are controllable and which option controls them. kind is ‘error’ to treat this diagnostic as an error, ‘warning’ to treat it like a warning (even if -Werror is in effect), or ‘ignored’ if the diagnostic is to be ignored. option is a double quoted string that matches the command-line option. span stylefont-size:18px; #pragma GCC diagnostic warning -Wformat#pragma GCC diagnostic error -Wformat#pragma GCC diagnostic ignored -Wformat /span Note that these pragmas override any command-line options. GCC keeps track of the location of each pragma, and issues diagnostics according to the state as of that point in the source file. Thus, pragmas occurring after a line do not affect diagnostics caused by that line.  #pragma GCC diagnostic push#pragma GCC diagnostic popCauses GCC to remember the state of the diagnostics as of each push, and restore to that point at each pop. If a pop has no matching push, the command-line options are restored.span stylefont-size:18px; #pragma GCC diagnostic error -Wuninitializedfoo(a); /* error is given for this one */#pragma GCC diagnostic push#pragma GCC diagnostic ignored -Wuninitializedfoo(b); /* no diagnostic for this one */#pragma GCC diagnostic popfoo(c); /* error is given for this one */#pragma GCC diagnostic popfoo(d); /* depends on command-line options */ /spanGCC also offers a simple mechanism for printing messages during compilation. #pragma message stringPrints string as a compiler message on compilation. The message is informational only, and is neither a compilation warning nor an error.span stylefont-size:18px; #pragma message Compiling __FILE__ ... /span string may be parenthesized, and is printed with location information. For example, span stylefont-size:18px; #define DO_PRAGMA(x) _Pragma (#x)#define TODO(x) DO_PRAGMA(message (TODO - #x))TODO(Remember to fix this) /span prints ‘/tmp/file.c:4: note: #pragma message: TODO - Remember to fix this’. 来源http://gcc.gnu.org/onlinedocs/gcc/Diagnostic-Pragmas.html
http://www.huolong8.cn/news/16025/

相关文章:

  • 美食网站建设页面要求企业网站建设资金预算表
  • 网站数据泄露我们应该怎么做网站设配色
  • 网站建设公司圣辉友联手机网站设计字体大小
  • 网站运维可以做哪些网页设计与制作第二版答案
  • 个人网站用移动硬盘做服务器网站可以更换域名吗
  • 外贸人常用的网站二级网站模板
  • 企业网站的建设一般要素有网站集约化建设工作方案
  • 公司网站建设管理百度网站架构
  • 移动电商网站设计比亚迪新能源汽车车型
  • 做快递单网站做搜狗手机网站快速排
  • 深圳网站专业建设公司东莞地图全图
  • 怎么做属于自己的域名网站网站性能优化
  • 做淘宝客网站需要什么视频服务器
  • 政务公开 网站建设深汕特别合作区
  • 北京响应式网站建设推荐万荣网站建设
  • 物流公司做网站有用吗必应网站收录提交入口
  • 空间站与空间站组合体交会对接少儿编程培训加盟品牌费用
  • 微网站平台怎样做网站手机版网站模板下载
  • 东莞网站seo优化托管新余公司做网站
  • 网站建设托管模式怎样做企业网站备案
  • 网站推广名词解释品牌设计师职业规划
  • 企业百度网站怎么做怎么建立一个简易的网站
  • 网站开发语言 .net建门户网站
  • 上海网站制作 公司ios个人开发者账号
  • 专门做创意桌椅的网站郑州400建站网站建设
  • wordpress企业网站主题网站备案个人可以做吗
  • 网站制作价格哪些购物网站用php做的
  • 如何注册域名并建设网站pc wap 装修公司网站源码
  • 可以做游戏的网站有哪些内容wordpress图像调用
  • 网站需不需要备案营销推广网站推广方案