随笔 - 34, 文章 - 3, 评论 - 10, 引用 - 0
数据加载中……

linux 下c 常见错误记录

warning: control reaches end of non-void function    定义了一个有返回值的函数,却没有写return.

warning: suggest parentheses around assignment used as truth value  告诉我们检查if 中的 '=='

warning:(前面是in function xxx) incompatible types in assignment 参数和调用的参数类型对不上
warning:return makes pointer from integer without a cast   函数定义的返回类型跟实际返回类型不匹配。
warning: no newline at the end of file  在文件的结尾加个回车


posted on 2010-01-12 17:13 wsy6634 阅读(171) 评论(0)  编辑 收藏 引用


只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理