On Sun, 19 Oct 2025, Andrew Cagney wrote:
To me, a project shipping with -Werror on by default signals that they take their code quality seriously. It's then up to downstream to decide what to do with this - strip -Werror and ship - or notice that the warning is for a real problem and file a bug.
I disagree. While a project may use -Werror during development, handing such a build option to a user is a bad idea. As a user, I want to build your software, not fix warnings. The user may be on a different OS, architecture, etc., triggering different warnings, which are now errors.
Shipping a build that works is the right thing to do. This means not setting -Werror in releases.
-- Benny