For a little while I used to compile with -Werror but I found it very annoying. I very often want to make a quick test commenting out a function call or doing an early return that would trigger a warning for dead code and prevent me from continuing.
It might be a good idea to add it to your build bot though, this way you can enforce it for commited code. That's a good compromise IMO.
It might be a good idea to add it to your build bot though, this way you can enforce it for commited code. That's a good compromise IMO.