解决办法就是if语句的下面加{}
报错的
if (!pMem) return LOS_NOK;
修改后
if (!pMem) { return LOS_NOK; }
转载于:https://www.cnblogs.com/429512065qhq/p/10607924.html