https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122685
Bug ID: 122685
Summary: Private field "m_wanted_type" is not used.
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: dcb314 at hotmail dot com
Target Milestone: ---
Today's build of gcc trunk with clang says:
trunk/gcc/c-family/c-lex.cc:984:23: note: 4824:8: warning: private field
'm_wanted_type' is not used [-Wunused-private-field]
Some grepping suggests:
c-family $ grep m_wanted_type *.h
c-family $ grep m_wanted_type *.cc
c-format.cc: m_wanted_type_name (wanted_type_name),
c-format.cc: // m_wanted_type_name can be nullptr
c-format.cc: if (m_wanted_type_name)
c-format.cc: pp_string (&ctxt.m_pp, m_wanted_type_name);
c-format.cc: const char *m_wanted_type_name;
c-format.cc: tree m_wanted_type;
c-family $
Maybe it would be a good idea to remove this unused field.