This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[v3, committed] Fix 22_locale/operators.cc for no return warning
- From: Paolo Carlini <pcarlini at unitus dot it>
- To: gcc-patches at gcc dot gnu dot org
- Cc: bkoz at redhat dot com
- Date: Sat, 02 Feb 2002 14:39:22 +0100
- Subject: [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()