3 ms·
Small error here: > You often find programmers recommending to configure C compilers with -Wall, which turns all warnings (which typically "inform") into error
by faho 5y ago
Small error here:
> You often find programmers recommending to configure C compilers with -Wall, which turns all warnings (which typically "inform") into errors ("block").
"-Wall" turns all warnings on [0]. What turns them into errors is "-Werror".
In a project you distribute to other people it's a horrible idea because different compiler versions will give different, sometimes wrong or spurious, warnings, and so it'll randomly fail to compile even tho the code is completely correct.
[0]: Well, not "all" warnings, just the ones in the "all" set. It's a bit misleading.
- wheybags 5y agoYeeeah, really it should be called -Wmost
- marcosdumay 5y agoWell, no sane people wants to activate literally all the warnings on those large compilers. Some are very niche, and some are pretty bad and only kept for backwards compatibility. But I agree that the name is misleading. Worse is that nowadays it's the "standard name", and it's widely known to mean "most", so changing it would be confusing.