From c71028c979d55f98b7727f9387bbe2f4ffe6de13 Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Thu, 2 Nov 2023 08:39:51 -0400 Subject: [PATCH] analyzer: fix clang warnings [PR112317] No functional change intended. gcc/analyzer/ChangeLog: PR analyzer/112317 * access-diagram.cc (class x_aligned_x_ruler_widget): Eliminate unused field "m_col_widths". (access_diagram_impl::add_valid_vs_invalid_ruler): Update for above change. * region-model.cc (check_one_function_attr_null_terminated_string_arg): Remove unused variables "cd_unchecked", "strlen_sval", and "limited_sval". * region-model.h (region_model_context_decorator::warn): Add missing "override". Signed-off-by: David Malcolm --- gcc/analyzer/access-diagram.cc | 9 +++------ gcc/analyzer/region-model.cc | 21 +++++---------------- gcc/analyzer/region-model.h | 2 +- 3 files changed, 9 insertions(+), 23 deletions(-) diff --git a/gcc/analyzer/access-diagram.cc b/gcc/analyzer/access-diagram.cc index c7d190e3188e..fb8c0282e751 100644 --- a/gcc/analyzer/access-diagram.cc +++ b/gcc/analyzer/access-diagram.cc @@ -919,11 +919,9 @@ class x_aligned_x_ruler_widget : public leaf_widget { public: x_aligned_x_ruler_widget (const access_diagram_impl &dia_impl, - const theme &theme, - table_dimension_sizes &col_widths) + const theme &theme) : m_dia_impl (dia_impl), - m_theme (theme), - m_col_widths (col_widths) + m_theme (theme) { } @@ -973,7 +971,6 @@ private: const access_diagram_impl &m_dia_impl; const theme &m_theme; - table_dimension_sizes &m_col_widths; std::vector