From Jason Turner
Watch on YouTube

Summary

Jason provides practical guidance for incrementally adding compiler warnings and static analysis to legacy codebases without being overwhelmed. He demonstrates starting with treating specific dangerous warnings as errors (using -Werror=specific-warning), fixing those issues, then gradually enabling broader warning sets like -Wall, -Wextra, and -Wunused. The key strategy is to enable warnings one at a time, fix all occurrences throughout the codebase, then make that warning an error to prevent regression. This incremental approach allows teams to improve code quality systematically without the paralyzing effect of thousands of warnings appearing at once.

Resources

Tags