27 ms·
> Most serious projects use these flags anyway. Most serious projects are opting in to being unable to compile on future compilers whenever new warnings are ad
by anonymoushn 4y ago
> Most serious projects use these flags anyway.
Most serious projects are opting in to being unable to compile on future compilers whenever new warnings are added?
- nwellnhof 4y agoObviously, -Werror shouldn't be enabled by default, only for things like CI tests.
- tomerv 4y agoOn the contrary, it should be on by default for every build configuration! If you move to a newer compiler version and the compilation breaks, then you just saved yourself valuable debugging time. The alternative is that the new compiler has a new optimization that causes your code to break in runtime. You can always disable specific warnings if you think they're not relevant for your code.