c++: Avoid bogus -Wunused with recent change
commit5ec4990bc777dd191b86aee6156be3f60cf9de24
authorJason Merrill <jason@redhat.com>
Thu, 2 Sep 2021 21:42:32 +0000 (2 17:42 -0400)
committerJason Merrill <jason@redhat.com>
Fri, 3 Sep 2021 15:12:09 +0000 (3 11:12 -0400)
tree64e4426904dacbc9a75ebd66d1a54d8adf2681be
parent943c65c4494145e993af43c821c82000013c6375
c++: Avoid bogus -Wunused with recent change

My change to make limit_bad_template_recursion avoid instantiating members
of erroneous classes produced a bogus "used but not defined" warning for
23_containers/unordered_set/instantiation_neg.cc; it's not defined because
we decided not to instantiate it.  So we need to suppress that warning.

gcc/cp/ChangeLog:

* pt.c (limit_bad_template_recursion): Suppress -Wunused for decls
we decide not to instantiate.
gcc/cp/pt.c