4 ms·
Of course compilers warn about this, but too many programmers just ignore warnings. Some warnings can be ignored without dire consequences. The problem is whe
by citrin_ru 5y ago
Of course compilers warn about this, but too many programmers just ignore warnings. Some warnings can be ignored without dire consequences. The problem is when compilation emits 100 warnings which are not critical it is easy to miss 101th which is critical. And until you'll fix all warnings you cannot build with -Werror.
I like BSD approach here: they use different warning levels (WARNS) for different directories and compile all code with -Werror.
- colejohnson66 5y agoIf the warnings are being ignored, and there’s a valid reason, can’t they be ignored? For example, unused variable warnings can be suppressed in many programming language linters/compilers.