libstdc++.exp (check_v3_target_c_std): Avoid unused variable warnings leading to...
authorPaolo Carlini <paolo.carlini@oracle.com>
Fri, 18 Jul 2008 18:40:53 +0000 (18:40 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Fri, 18 Jul 2008 18:40:53 +0000 (18:40 +0000)
2008-07-18  Paolo Carlini  <paolo.carlini@oracle.com>

* testsuite/lib/libstdc++.exp (check_v3_target_c_std): Avoid unused
variable warnings leading to spurious fails of the test.

From-SVN: r137961

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/lib/libstdc++.exp

index 03bd7b87ba74618c80aed931a61e7534aca3692d..377bef99f90811e89c2af711e206f729afa56596 100644 (file)
@@ -1,3 +1,8 @@
+2008-07-18  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       * testsuite/lib/libstdc++.exp (check_v3_target_c_std): Avoid unused
+       variable warnings leading to spurious fails of the test.
+
 2008-07-16  Paolo Carlini  <paolo.carlini@oracle.com>
 
        * testsuite/30_threads/recursive_mutex/cons/assign_neg.cc: Adjust
index d8c168defacfab31e3067cf38a51f7334b9f89fe..29258c35b4c95613e8cce89d995fec5c71439a2a 100644 (file)
@@ -687,7 +687,7 @@ proc check_v3_target_c_std { } {
        puts $f "  int i = std::tr1::isnan(f);"
        puts $f "  "
        puts $f "  using std::wctomb;"
-       puts $f "  return 0;"
+       puts $f "  return i;"
        puts $f "}" 
        close $f