error: this 'if' clause does not guard... [-Werror=misleading-indentation]

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

报错的

    if (!pMem)
        return LOS_NOK;
    

修改后

    if (!pMem)
    {
        return LOS_NOK;
    }

 

posted @ 2019-03-27 15:34  429512065  阅读(14801)  评论(0编辑  收藏  举报