[Bug c++/69521] -Wdeprecated-declarations errors in unused inline methods
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69521 Richard Biener changed: What|Removed |Added Keywords||diagnostic Status|UNCONFIRMED |NEW Last reconfirmed||2016-01-28 Ever confirmed|0 |1 Severity|normal |enhancement --- Comment #2 from Richard Biener --- Kind-of confirmed. I understand this makes sense if both deprecated functions are "related" but you might be interested in a warning about using a deprecated function from an unrelated library even in your own deprecated function. Also kind-of confirmed for __attribute__((deprecated)) inline void qLess() {} inline void qLowerBound() { qLess(); } int main() { return 0; } thus for use in an unused inline function. As above you might be interested in this kind of warning nevertheless. A good solution might be to have two levels of this warning.
[Bug c++/69521] -Wdeprecated-declarations errors in unused inline methods
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69521 Loïc Yhuel changed: What|Removed |Added CC||loic.yhuel at gmail dot com --- Comment #1 from Loïc Yhuel --- > If it's easier to do, perhaps using a deprecated function in a deprecated > function shouldn't produce a warning (deprecated code would be able to use > other deprecated code). Clang seems to do this. Testing with clang 3.7, the 3 cases (first code, second code in C++ mode, second code in C mode) don't produce any warning, unless I remove the deprecated attribute from qLowerBound.