From bca1c431affee41ecadb7f29d8d65142a73e0ebf Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Fri, 14 Jan 2022 22:08:16 +0000 Subject: [PATCH] libstdc++: Ignore deprecated warnings [PR104037] The std::pointer_to_binary_function utility was deprecated in C++11 and removed in C++17. Libstdc++ has started to warn about using it, so suppress the warnings for this test. gcc/testsuite/ChangeLog: PR testsuite/104037 * g++.old-deja/g++.robertl/eb43.C: Ad -Wno-deprecated. --- gcc/testsuite/g++.old-deja/g++.robertl/eb43.C | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb43.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb43.C index 90afbe4..c54050c 100644 --- a/gcc/testsuite/g++.old-deja/g++.robertl/eb43.C +++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb43.C @@ -5,6 +5,7 @@ // to pointer_to_binary_function, which has an `explicit' constructor. // { dg-prune-output "note" } +// { dg-options "-Wno-deprecated" } #include #include -- 2.7.4