pointer/integer type mismatch in conditional expression

一笑奈何 提交于 2019-12-01 21:06:18

Check whether you have included <string.h> header. If not, the return value of strerror may be considered as an integer value. It would explain why the program runs ok (the linker can find a matched function named strerror, because the C standard library is linked by default), whereas the compiler reports a warning.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!