1. 程式人生 > >splint太久不更新了

splint太久不更新了

用splint做程式碼檢查,發現這個居然支援老版本c,
如下程式碼就報錯,因為宣告必須要在函式頭

int func_splint_msg2(void)
{
    int a = 2;
    a = 3;
    int b;
    return0;
}

Splint 3.1.2 — 29 Aug 2018

test.c:5:5: Parse Error. (For help on parse errors, see splint -help
parseerrors.)
* Cannot continue.