解决办法就是if语句的下面加{}

报错的

    if (!pMem)
        return LOS_NOK;
    

修改后

    if (!pMem)
    {
        return LOS_NOK;
    }

 

相关文章: