相关疑难解决方法(0)

选择性地删除警告消息GCC

这段代码:

Int32 status;
printf("status : %x", status)
Run Code Online (Sandbox Code Playgroud)

给我以下警告:

jpegthread.c:157: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'Int32'
Run Code Online (Sandbox Code Playgroud)

我知道我可以通过转换类型来摆脱它,但是有可能使用GCC编译器标志来摆脱那种特殊类型的警告,并仍然使用-Wall

gcc warnings

37
推荐指数
4
解决办法
7万
查看次数

标签 统计

gcc ×1

warnings ×1