..\SYSTEM\usart\usart.c(41): error: #260-D: explicit type is missing ("int" assumed)

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


解决办法:应该写成void  _sys_exit(int x) 

猜你喜欢

转载自blog.csdn.net/weixin_38553885/article/details/78546308