Skip to content
This repository was archived by the owner on Jan 31, 2024. It is now read-only.

Commit 2dbe280

Browse files
committed
testsuite: Fix warning regression due to std::string changes [PR106795]
std::string now has [[nodiscard]] attributes on most members, causing -Wunused-result warnings for this test. gcc/testsuite/ChangeLog: PR testsuite/106795 * g++.dg/tree-ssa/empty-loop.C: Use -Wno-unused-result.
1 parent be9dd80 commit 2dbe280

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gcc/testsuite/g++.dg/tree-ssa/empty-loop.C

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* { dg-do compile } */
2-
/* { dg-options "-O2 -fdump-tree-cddce2 -ffinite-loops" } */
2+
/* { dg-options "-O2 -fdump-tree-cddce2 -ffinite-loops -Wno-unused-result" } */
33

44
#include <string>
55
#include <vector>

0 commit comments

Comments
 (0)