Hi, when building GCC with clang, it warns that the private member suffix in class element_expected_type_with_indirection (defined in gcc/c-family/c-format.cc) is not used which indeed looks like it is the case. This patch therefore removes it.
Bootstrapped and tested on x86_64-linx. OK for master? Alternatively, as with all of these clang warning issues, I'm perfectly happy to add an entry to contrib/filter-clang-warnings.py to ignore the warning instead. Thanks, Martin gcc/c-family/ChangeLog: 2025-06-24 Martin Jambor <mjam...@suse.cz> * c-format.cc (class element_expected_type_with_indirection): Remove member m_wanted_type. --- gcc/c-family/c-format.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/gcc/c-family/c-format.cc b/gcc/c-family/c-format.cc index a44249a0222..1fdda3faaf5 100644 --- a/gcc/c-family/c-format.cc +++ b/gcc/c-family/c-format.cc @@ -4817,7 +4817,6 @@ public: private: const char *m_wanted_type_name; - tree m_wanted_type; int m_pointer_count; }; -- 2.49.0