码迷,mamicode.com
首页 > 其他好文 > 详细

gcc 编译warning 去除

时间:2015-01-20 13:49:30      阅读:334      评论:0      收藏:0      [点我收藏+]

标签:


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

gcc 编译warning 去除

标签:

原文地址:http://blog.csdn.net/qianguozheng/article/details/42915887

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!