[Bug c++/120460] std::function ignores [[nodiscard]] attribute
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120460 --- Comment #3 from Jonathan Wakely --- i.e. maybe this warning should ignore whether it's in a system header or not.
[Bug c++/120460] std::function ignores [[nodiscard]] attribute
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120460 Jonathan Wakely changed: What|Removed |Added Last reconfirmed||2025-05-28 Ever confirmed|0
[Bug c++/120460] std::function ignores [[nodiscard]] attribute
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120460 Andrew Pinski changed: What|Removed |Added Keywords||diagnostic Component|libstdc++