Hacker News new | past | comments | ask | show | jobs | submit login

Using -Werror in development is annoying too. It works if everyone is running exactly the same OS, header files, and version of the compiler.

If not... different developers have different errors.

I try to build with all of the warnings turned on, multiple static analysis tools, and with multiple OS / compilers. Yet every time a compiler or OS is upgraded, there's a whole suite of new build warnings.




Have you tried this lately - in the last 10 years? things used to be bad, but clang and gcc at least have really cleaned up their act, most warning are now zero false positives and so you want to clean everything up. The only time I see the issue you described was when someone upgraded the compiler, and the new warnings were all real bugs.

Static analysis tools are a different problem: I find that most of them have so many false positives they are not worth looking at.


> Have you tried this lately - in the last 10 years?

I'm wondering what it is about HN that lets people be condescending know-it-alls.

If you look, there's only one of me online. I write between 10K and 20K lines of C a year.

So yes, I have tried this in the last 10 years.




Consider applying for YC's W25 batch! Applications are open till Nov 12.

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

Search: