warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]

main.c:10:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]

主要原因是在源文件中没有声明函数

未经声明的函数原型一律默认为返回int值(4个byte)
定义赋值的指针变量(8个byte)

所以发生警告

 

posted @   youdao67  阅读(1479)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示