定义 _sys_exit(int x) 以避免使用半主机模式,函数没有返回类型,假定其返回类型为int,可以写为void void _sys_exit(int x) ,否则编译器会默认为返回int类型,故会出现上述警告。 解决办法:应该写成void _sys_exit(int x)