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

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

 


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

posted @   软践  阅读(653)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示