Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Sure, but I think a lint to warn you that a variable named "size" should be size_t is complete overkill.

What I'd rather see are better lints and a better culture around them instead of the cowboy attitude you see in a lot of systems code. Today, lints for C are pretty bad and the default attitude isn't to fix warnings but to disable them when compiling the software. Even worse is when distro maintainers patch the sketchy code instead of the 1p devs doing it right from the beginning.

It doesn't matter what your warnings are if the attitude is to ignore them. And in this case, there are several warnings that would tell you the code smells and needs attention.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: