[Bug libstdc++/59325] Provide a way to disable deprecated warnings

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Oct 20 14:28:37 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59325

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2020-10-20
             Status|UNCONFIRMED                 |WAITING
     Ever confirmed|0                           |1

--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to andysem from comment #2)
> (In reply to Jonathan Wakely from comment #1)
> > You can use a #pragma to disable -Wdeprecated locally
> 
> But the legacy C++ is used in the library, which code I'd like to avoid
> changing.

Is this still a problem? Uses of deprecated features within the library itself
should no longer emit warnings (I think I've disabled them with pragmas).

So the only uses should be in our own code, which you can add pragmas to.


More information about the Gcc-bugs mailing list