warning: assignment makes pointer from integer without a cast

Posted a1232345

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了warning: assignment makes pointer from integer without a cast相关的知识,希望对你有一定的参考价值。

编译的时候报警告:warning: assignment makes pointer from integer without a cast

出现这个警告的原因是在使用函数之前没有对函数进行声明,未经声明的函数原型一律默认为返回int值。

这样、就相当于你调用了返回值为int的函数,并将其赋给了char*变量,所有会出现警告。


warning: assignment makes pointer from integer without a cast

warning: assignment makes pointer from integer without a cast

以上是关于warning: assignment makes pointer from integer without a cast的主要内容,如果未能解决你的问题,请参考以下文章

解决 warning 显示 The linear_assignment function is deprecated in 0.21 and will be removed from 0.23. Us

map赋值前要先初始化:assignment to entry in nil map

keil_c出现source_file\JPDA_LPC2132.c(1584): warning: #1293-D: assignment in condition怎么解决

编译在X86平台下运行的linux内核出错 make: Warning: File `.config' has modification time 6.5e+02 s in

(99)Cannot assign requested address: AH00072: make_sock: could not bind to address xx.xxx.xxx.xx:80

R语言安装本地包Warning in system(cmd) : ‘make‘ not found安装和R版本匹配的Rtools