Any Tools to Catch Silly Mistakes in C Code?

后端 未结 11 2805
臣服心动
臣服心动 2021-02-20 08:11

I had a nasty typo that wasted my time and my colleague\'s time, it was something like this:

for (i = 0; i < blah; i++); // <- I had a semi-colon here, tha         


        
11条回答
  •  南方客
    南方客 (楼主)
    2021-02-20 08:34

    GCC has most of the functionality that Lint has had built in via the warning flags.

提交回复
热议问题