gcc 编译warning 去除

来源:互联网 发布:kafka pagecache 源码 编辑:程序博客网 时间:2024/06/07 01:52


1. warning: incompatible implicit declaration of built-in function 'strlen'

解决方案: #include<string.h>

2. client.c:61: warning: passing argument 1 of 'snprintf' from incompatible pointer type

解决方案: 数据类型定义错误,是char 而不是 int

0 0
原创粉丝点击