如何忽略“有符号和无符号整数表达式之间的比较"? [英] How to ignore 'comparison between signed and unsigned integer expressions'?
本文介绍了如何忽略“有符号和无符号整数表达式之间的比较"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有人可以告诉我为了使gcc忽略有符号和无符号整数之间的比较"警告消息而必须使用的标志.
Can anybody please tell me which flag I have to use in order to make gcc ignore the 'comparison between signed and unsigned integer expressions' warning message.
推荐答案
gcc -Wno-sign-compare
但是您应该真正解决比较问题,因为它仍然会向您发出警告.
But you should really fix the comparison it's warning you about anyway.
这篇关于如何忽略“有符号和无符号整数表达式之间的比较"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文