This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[v3, committed] Fix 22_locale/operators.cc for no return warning


Hi,

due to this recent patch from Jason Merrill:

    http://gcc.gnu.org/ml/gcc-patches/2002-02/msg00034.html

that test is currently spuriously failing. I'm committing under the obviously
correct rule the following patch, after testing on i686-pc-linux-gnu.

Cheers, Paolo.

////////////

2002-02-02  Paolo Carlini  <pcarlini@unitus.it>

        * testsuite/22_locale/operators.cc
        (gnu_collate::do_compare()): Add return statement to
        suppress "no return statement" warning.

diff -urN libstdc++-v3-orig/testsuite/22_locale/operators.cc
libstdc++-v3/testsuite/22_locale/operators.cc
--- libstdc++-v3-orig/testsuite/22_locale/operators.cc Sun Aug 19 02:20:07 2001
+++ libstdc++-v3/testsuite/22_locale/operators.cc Sat Feb  2 14:24:46 2002
@@ -54,7 +54,7 @@
 protected:
   virtual int
   do_compare(const char*, const char*, const char*, const char*) const
-  { ++gnu_count; }
+  { ++gnu_count; return 0; }
 };

 void test02()






Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]