Suppress -Wtautological-compare warning
来源:互联网 发布:南方大数据300指数基金 编辑:程序博客网 时间:2024/06/10 18:58
https://stackoverflow.com/questions/15864461/suppress-wtautological-compare-warning
You can disable it for the entire file by adding -Wno-tautological-compare
to the Clang command line (after flags such as -Wall
that turn warnings on). The disadvantage of this method is that the warning is now disabled everywhere in that translation unit, not just for the Q_ASSERT(...)
macro instances.
Another, more tedious but fine grained, method is to wrap every instance of the macro that generates this warning with the following:
#pragma clang diagnostic push#pragma clang diagnostic ignored "-Wtautological-compare"//出现警告的代码#pragma clang diagnostic pop
阅读全文
0 0
- Suppress -Wtautological-compare warning
- 程序关闭时在#pragma warning(suppress: 4985)处中断
- Suppress warning “Category is implementing a method which will also be implemented b
- flask web开发 Set it to True to suppress this warning问题
- SUPPRESS DIALOG
- xcode升级到4.4.1后 Suppress warning “Category is implementing a method which will also be implemented by
- warning C4715: 'compare' : not all control pathsreturn a value
- leave screen & suppress dialog
- Suppress output from popen()
- the Suppress Reboot Issue
- compare
- compare
- compare:
- A warning - comparison between signed and unsigned integer expressions [-Wsign-compare]的解决方法
- Warning
- warning
- warning
- warning
- DilagFragmet
- BZOJ 1441: Min 裴蜀定理
- 杂志征稿要求有哪些
- 二叉树的下一个结点
- 马云纽约演讲全文:再不改革教育,年轻人都要失业
- Suppress -Wtautological-compare warning
- 经典SQL语句大全(非增删改查)
- 有关并发和并行的问题解析
- 阿里巴巴摘得LSVC桂冠 打造领先AI视频技术
- 让你的内容在社群中"疯传"的秘密
- Makefile十三之make参数
- NSIS设置.net运行环境
- .net 多web站点联合调试设置说明
- IntelliJ2017.2:破解教程