4 ms·
Sadly, you folks seem to be the minority out there. I can't even remember how many times I've had conversations along the lines of: Me: Hey, that code generate
by ryandrake 11y ago
Sadly, you folks seem to be the minority out there. I can't even remember how many times I've had conversations along the lines of:
Me: Hey, that code generates 3 compiler warnings, and you shouldn't be casting that pointer here.
Them: Oh, ok, whatever, change it if you want.
Me: It's not about what I want.. the code isn't correct. It'll break on some 64-bit platforms, for instance.
Them: Well, it works on our target platform, and that's the one in the spec. If the spec changes, we fix it as a change request.
Me: But it just happens to work! Even a different compiler could result in different behavior. Can't we just put in a little effort up front to avoid trouble later?
Them: Go for it if it bothers you so much. We have real bugs to fix. Nobody cares about hypothetical problems on systems we don't support and compilers we don't use.
Me: [This is going to drive me to alcoholism]
- blazespin 11y agoThe biggest issue with lettings warnings go is that they pile up and you start missing the important ones that point to real bugs. I have seen that happen many many times.
- MereInterest 11y agoI think that I managed to convince a group member that we should have "-Wall -Wextra -pedantic" enabled all the time. He had disabled the warnings because they annoyed him. Yesterday, we spent a large quantity of time hunting down a bug that could have been avoided entirely had "-Wreturn-type" been enabled.