]> gcc.gnu.org Git - gcc.git/commitdiff
testsuite: Fix warning introduced by nodiscard in libstdc++
authorJonathan Wakely <jwakely@redhat.com>
Thu, 5 Aug 2021 13:00:35 +0000 (14:00 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 5 Aug 2021 14:16:58 +0000 (15:16 +0100)
Signed-off-by: Jonathan Wakely <jwakely@redhat.com>
gcc/testsuite/ChangeLog:

* g++.old-deja/g++.other/inline7.C: Cast nodiscard call to void.

gcc/testsuite/g++.old-deja/g++.other/inline7.C

index a3723cfba1e916fed16c0ce0433516ff49aded15..626000039c57d36fed13ba6fb41dcc0328fc6ff3 100644 (file)
@@ -8,7 +8,7 @@ std::list<int*> li;
 
 void f ()
 {
-  li.size ();
+  (void) li.size ();
 }
 
 int main ()
This page took 0.064826 seconds and 5 git commands to generate.