News for hackers. Stuff that matters.
Re:My favorite C compiler flags during development by JoshTriplett on Sunday April 30, 2023 @08:51AM (#35762080)
I personally like turning on `-Werror=specific-warning` `-Werror=another-specific-warning`, for a long list of warnings. Then, if the compiler adds a new warning, you have a chance to review it and eliminate all instances of it before making it an error.

That doesn't prevent the compiler from expanding an existing warning, but that seems to break code less often than a blanket `-Werror`.

There are no comments on this comment yet.