ubuntu 中消除编译c程序时的“exit(0)” 警告

ubuntu linux 中 用 gcc 编译会 含 exit(0); 的c程序会出现警告 warning: incompatible implicit declaration of built-in function ‘exit’

 


将 ‘ exit(0)’  改为 ‘ return 0’ 即可消除此警告

posted @ 2010-12-13 09:52  软践  阅读(631)  评论(0编辑  收藏  举报