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 @ 2023-02-07 08:42  youdao67  阅读(1111)  评论(0编辑  收藏  举报