您的位置:首页 > 其它

对于warning认为是error的时候,如何关闭警告?

2016-03-04 16:13 393 查看
编译tci &= htons(~VLAN_PCP_MASK);代码的时候遇到

lib/odp-execute.c:649:13: warning: large integer implicitly truncated to unsigned type [-Werror=overflow]

在AM_CFLAGS增加-Wno-error=overflow,于是错误就变为警告了

lib/odp-execute.c:649:13: warning: large integer implicitly truncated to unsigned type [-Woverflow]

基本是提示-Werror=overflow的时候在flag中增加-Wno-error=overflow
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: