testsuite: Fix warning regression due to std::string changes [PR106795]
authorJonathan Wakely <jwakely@redhat.com>
Wed, 31 Aug 2022 19:36:23 +0000 (20:36 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Wed, 31 Aug 2022 20:09:57 +0000 (21:09 +0100)
commit2dbe2801df3010c5549a3ca958194aa77737122d
tree1c73f73712666583911866ea7b866cdd231ae553
parentbe9dd80f9334800300a80268dbb92cf3fafcfcf8
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.
gcc/testsuite/g++.dg/tree-ssa/empty-loop.C