Fixes various compiler warnings
This PR resolves compiler warnings related to formatting, uninitialized variables, non-virtual destructors, and unused variables in GCC.
This PR fixes a set of compiler warnings across the diagnostics, text-art, and analyzer modules in GCC. The warnings addressed include -Wformat-diag issues, -Wmaybe-uninitialized warnings, -Wdelete-non-virtual-dtor warnings, and -Wunused-variable warnings. Fixing these warnings improves code quality and reduces the risk of potential bugs, contributing to a more robust compiler.
In Details
This PR targets warning cleanup across multiple GCC modules, including diagnostics, text-art, and the analyzer. These warnings, such as -Wformat-diag, -Wmaybe-uninitialized, and -Wdelete-non-virtual-dtor, are detected during the compilation of GCC itself. Resolving these warnings improves the overall quality and maintainability of the GCC codebase.
For Context
When building software, compilers often produce warnings about potential issues in the code. These warnings can range from formatting inconsistencies to more serious problems like uninitialized variables or improper memory management. This PR addresses a collection of such warnings that arise when compiling GCC itself, improving the compiler's code quality and reducing potential risks.