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

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

报错的

    if (!pMem)
        return LOS_NOK;
    

修改后

    if (!pMem)
    {
        return LOS_NOK;
    }
原文地址:https://www.cnblogs.com/429512065qhq/p/10607924.html