public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-2767] testsuite: Fix warning introduced by nodiscard in libstdc++
@ 2021-08-05 14:17 Jonathan Wakely
0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2021-08-05 14:17 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:03d47da7e1e91adddbde261ffefd2760df59a564
commit r12-2767-g03d47da7e1e91adddbde261ffefd2760df59a564
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Thu Aug 5 14:00:35 2021 +0100
testsuite: Fix warning introduced by nodiscard in libstdc++
Signed-off-by: Jonathan Wakely <jwakely@redhat.com>
gcc/testsuite/ChangeLog:
* g++.old-deja/g++.other/inline7.C: Cast nodiscard call to void.
Diff:
---
gcc/testsuite/g++.old-deja/g++.other/inline7.C | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/testsuite/g++.old-deja/g++.other/inline7.C b/gcc/testsuite/g++.old-deja/g++.other/inline7.C
index a3723cfba1e..626000039c5 100644
--- a/gcc/testsuite/g++.old-deja/g++.other/inline7.C
+++ b/gcc/testsuite/g++.old-deja/g++.other/inline7.C
@@ -8,7 +8,7 @@ std::list<int*> li;
void f ()
{
- li.size ();
+ (void) li.size ();
}
int main ()
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-08-05 14:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-05 14:17 [gcc r12-2767] testsuite: Fix warning introduced by nodiscard in libstdc++ Jonathan Wakely
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).