From: David Malcolm Date: Thu, 2 Nov 2023 12:39:51 +0000 (-0400) Subject: analyzer: fix clang warnings [PR112317] X-Git-Tag: basepoints/gcc-15~5059 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c71028c979d55f98b7727f9387bbe2f4ffe6de13;p=thirdparty%2Fgcc.git 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 --- 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