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

2020-10-20 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59325 Jonathan Wakely changed: What|Removed |Added Status|WAITING |NEW Keywords|

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

2020-10-20 Thread andysem at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59325 --- Comment #8 from andysem at mail dot ru --- (In reply to Jonathan Wakely from comment #6) > (In reply to andysem from comment #2) > > (In reply to Jonathan Wakely from comment #1) > > > You can use a #pragma to disable -Wdeprecated locally > >

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

2020-10-20 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59325 --- Comment #7 from Jonathan Wakely --- (In reply to andysem from comment #4) > I just think that all these hoops could be avoided if libstdc++ was a little > more friendly in this regard. After all, there's no harm in using e.g. > auto_ptr in C+

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

2020-10-20 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59325 Jonathan Wakely changed: What|Removed |Added Last reconfirmed||2020-10-20 Status|UNCONFIR

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

2014-12-21 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59325 --- Comment #5 from Jonathan Wakely --- --- a/libstdc++-v3/include/bits/c++config +++ b/libstdc++-v3/include/bits/c++config @@ -78,11 +78,13 @@ # define _GLIBCXX_USE_DEPRECATED 1 #endif +#ifndef _GLIBCXX_DEPRECATED #if defined(__DEPRECATED) &

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

2013-11-28 Thread andysem at mail dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59325 --- Comment #4 from andysem at mail dot ru --- (In reply to Jonathan Wakely from comment #3) > Doing this before any other includes will work: > > #include > #undef _GLIBCXX_DEPRECATED > #define _GLIBCXX_DEPRECATED > > I'm not convinced we want

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

2013-11-28 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59325 --- Comment #3 from Jonathan Wakely --- Doing this before any other includes will work: #include #undef _GLIBCXX_DEPRECATED #define _GLIBCXX_DEPRECATED I'm not convinced we want to support this officially.

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

2013-11-28 Thread andysem at mail dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59325 --- Comment #2 from andysem at mail dot ru --- (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.

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

2013-11-28 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59325 --- Comment #1 from Jonathan Wakely --- You can use a #pragma to disable -Wdeprecated locally