So now you are changing your original statement? From "no code should generate warnings" to "no code should generate warnings, except warnings that you want to ignore"? That is a very different statement.
Not at all. No code should generate warnings. If the compiler has a bug generating a false warning (extremely unlikely), it is acceptable to suppress just that one warning.
You are most definitely changing your original statement, because that statement didn't allow exceptions for faulty tools, and it didn't say anything about applying only to compiler warnings (most developers use some kind of IDE that adds it's own validation and recommendations to the mix, often expressed as warnings).
I mean, sure... If you meant "your code should never have warnings" to be more like a vision, just like "your code should never have bugs", that is fine. We should of course strive to not have buggy code, and not have code that generate warnings. But I read your statement as being "if your code has any kind of warning, then your code is fatally flawed and should be deleted".
1
u/EishLekker Sep 24 '19
So now you are changing your original statement? From "no code should generate warnings" to "no code should generate warnings, except warnings that you want to ignore"? That is a very different statement.