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

编译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

你可能感兴趣的:(对于warning认为是error的时候,如何关闭警告?)