Guide42.9K views2,213 votes0 replies1,776 following
Using Clang's -Wunused-variable to Detect Unused Declarations
Enable Clang's -Wunused-variable to catch declared‑but‑never‑read variables, see how Sema emits the diagnostic, and learn limits and silencing techniques.