diff options
author | Benjamin Kosnik <bkoz@gcc.gnu.org> | 2000-07-22 01:27:11 +0000 |
---|---|---|
committer | Benjamin Kosnik <bkoz@gcc.gnu.org> | 2000-07-22 01:27:11 +0000 |
commit | 05298deabe701b52193daaeba54e04d5fa4f9a24 (patch) | |
tree | 9d585b2ee0a87e795aa66e0d951efa9e1ccb2d9e | |
parent | 4142b247014131a195c9d1f7f93a23a224ba0a39 (diff) | |
download | gcc-05298deabe701b52193daaeba54e04d5fa4f9a24.zip gcc-05298deabe701b52193daaeba54e04d5fa4f9a24.tar.gz gcc-05298deabe701b52193daaeba54e04d5fa4f9a24.tar.bz2 |
stl-inst.cc: Change __sink_unused_warning to unsigned int for alpha.
2000-07-21 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
* src/stl-inst.cc: Change __sink_unused_warning to unsigned int
for alpha.
* testsuite/26_numerics/complex_inserters_extractors.cc (testall):
Change return type to void.
* testsuite/25_algorithms/lower_bound.cc: Add return values.
* bits/locale_facets.h: Add return values for the generic cases.
From-SVN: r35183
-rw-r--r-- | libstdc++-v3/bits/locale_facets.h | 34 | ||||
-rw-r--r-- | libstdc++-v3/src/stl-inst.cc | 2 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/25_algorithms/lower_bound.cc | 4 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/26_numerics/complex_inserters_extractors.cc | 2 |
4 files changed, 27 insertions, 15 deletions
diff --git a/libstdc++-v3/bits/locale_facets.h b/libstdc++-v3/bits/locale_facets.h index 14be3f2..839d550 100644 --- a/libstdc++-v3/bits/locale_facets.h +++ b/libstdc++-v3/bits/locale_facets.h @@ -284,72 +284,84 @@ namespace std do_is(mask, char_type) const { // XXX Need definitions for these abstract mf's. + return true; } virtual const char_type* - do_is(const char_type*, const char_type*, mask*) const + do_is(const char_type* __lo, const char_type*, mask*) const { // XXX Need definitions for these abstract mf's. + return __lo; } virtual const char_type* - do_scan_is(mask, const char_type*, const char_type*) const + do_scan_is(mask, const char_type* __lo, const char_type*) const { // XXX Need definitions for these abstract mf's. + return __lo; } virtual const char_type* - do_scan_not(mask, const char_type*, const char_type*) const + do_scan_not(mask, const char_type* __lo, const char_type*) const { // XXX Need definitions for these abstract mf's. + return __lo; } virtual char_type - do_toupper(char_type) const + do_toupper(char_type __c) const { // XXX Need definitions for these abstract mf's. + return __c; } virtual const char_type* - do_toupper(char_type*, const char_type*) const + do_toupper(char_type* __lo, const char_type*) const { // XXX Need definitions for these abstract mf's. + return __lo; } virtual char_type - do_tolower(char_type) const + do_tolower(char_type __c) const { // XXX Need definitions for these abstract mf's. + return __c; } virtual const char_type* - do_tolower(char_type*, const char_type*) const + do_tolower(char_type* __lo, const char_type*) const { // XXX Need definitions for these abstract mf's. + return __lo; } virtual char_type - do_widen(char) const + do_widen(char __c) const { // XXX Need definitions for these abstract mf's. + return __c; } virtual const char* - do_widen(const char*, const char*, char_type*) const + do_widen(const char* __lo, const char*, char_type*) const { // XXX Need definitions for these abstract mf's. + return __lo; } virtual char - do_narrow(char_type, char) const + do_narrow(char_type, char __c) const { // XXX Need definitions for these abstract mf's. + return __c; } virtual const char_type* - do_narrow(const char_type*, const char_type*, char, char*) const + do_narrow(const char_type* __lo, const char_type*, char, char*) const { // XXX Need definitions for these abstract mf's. + return __lo; } }; diff --git a/libstdc++-v3/src/stl-inst.cc b/libstdc++-v3/src/stl-inst.cc index 5e13a96..e64e5d0 100644 --- a/libstdc++-v3/src/stl-inst.cc +++ b/libstdc++-v3/src/stl-inst.cc @@ -51,6 +51,6 @@ namespace std { template void - __sink_unused_warning<size_t>(size_t); + __sink_unused_warning<unsigned int>(unsigned int); } //std diff --git a/libstdc++-v3/testsuite/25_algorithms/lower_bound.cc b/libstdc++-v3/testsuite/25_algorithms/lower_bound.cc index 076c954..bd88135 100644 --- a/libstdc++-v3/testsuite/25_algorithms/lower_bound.cc +++ b/libstdc++-v3/testsuite/25_algorithms/lower_bound.cc @@ -24,8 +24,8 @@ // http://sourceware.cygnus.com/ml/libstdc++/2000-06/msg00316.html struct foo { }; -bool operator== (const foo&, const foo&) { }; -bool operator< (const foo&, const foo&) { }; +bool operator== (const foo&, const foo&) { return true; }; +bool operator< (const foo&, const foo&) { return true; }; void bar(foo* a, foo* b, foo& x) { diff --git a/libstdc++-v3/testsuite/26_numerics/complex_inserters_extractors.cc b/libstdc++-v3/testsuite/26_numerics/complex_inserters_extractors.cc index a14ccbd..7aff69a 100644 --- a/libstdc++-v3/testsuite/26_numerics/complex_inserters_extractors.cc +++ b/libstdc++-v3/testsuite/26_numerics/complex_inserters_extractors.cc @@ -66,7 +66,7 @@ void test_fail(std::string str) } template<typename R> -int testall() +void testall() { test_good<R>("(-1.1,3.7)#", -1.1, 3.7); test_good<R>("( .7e6 , \n-3.1)#", .7e6, -3.1); |