Commit 8b5bc374 by Chris Jefferson Committed by Paolo Carlini

mt_allocator.h (__mt_alloc::__mt_alloc): Remove name of unused parameter.

2005-12-26  Chris Jefferson  <chris@bubblescope.net>

	* include/ext/mt_allocator.h (__mt_alloc::__mt_alloc): Remove
	name of unused parameter.
	* include/bits/stream_iterator.h (istream_iterator::istream_iterator):
	Construct _M_value.
	* include/debug/functions.h (__check_valid_range): Add
	__attribute__((unused)).
	* include/tr1/hashtable (hashtable::end): Remove name of unused
	parameter.
	* include/tr1/tuple_iterate.h (tuple::tuple): Likewise.
	(tuple::operator=): Add __attribute__((unused)).
	* include/tr1/functional (Fnv_hash<4>::hash): Add static_cast.
	(Fnv_hash<8>::hash): Likewise.

	* testsuite/25_algorithms/iter_swap/20577.cc (swap): Remove name of
	unused parameter.
	* testsuite/25_algorithms/unique_copy/check_type.cc (S2::S2,X2::X2):
	Likewise.
	* testsuite/22_locale/ctype/narrow/char/19955.cc (do_narrow): Likewise.
	* testsuite/22_locale/ctype/is/char/9858.cc (Derived::do_is, 
	Derived::do_scan_is, Derived::do_scan_not, Derived2::do_is,
	Derived2::do_scan_is, Derived2::do_scan_not): Likewise.
	* testsuite/22_locale/time_put/put/wchar_t/12439_1.cc (TP::do_put):
	Likewise.
	* testsuite/22_locale/time_put/put/wchar_t/12439_3.cc (TP::do_put):
	Likewise.
	* testsuite/22_locale/time_put/put/char/12439_1.cc (TP::do_put):
	Likewise.
	* testsuite/22_locale/time_put/put/char/12439_3.cc (TP::do_put):
	Likewise.
	* testsuite/testsuite_io.h (fail_num_get::do_get, fail_num_put::do_put):
	Likewise.
	* testsuite/25_algorithms/find/17441.cc (find): Likewise.
	* testsuite/23_containers/vector/cons/clear_allocator.cc
	(clear_alloc::clear_alloc): Likewise.
	* testsuite/23_containers/vector/bool/clear_allocator.cc
	(clear_alloc::clear_alloc): Likewise.
	* testsuite/23_containers/list/cons/clear_allocator.cc
	(clear_alloc::clear_alloc): Likewise.
	* testsuite/23_containers/set/modifiers/16728.cc (test_container):
	Likewise.
	* testsuite/27_io/basic_ios/cons/char/3.cc (char_traits::to_char_type,
	to_int_type): Likewise.
	* testsuite/27_io/basic_filebuf/imbue/12206.cc (codecvt::do_out, do_in,
	do_unshift, do_length): Likewise.
	* testsuite/21_strings/basic_string/capacity/1.cc 
	(operator==(A<T>,A<T>), operator<(A<T>,A<T>),
	char_traits::to_char_type, char_traits::to_int_type): Likewise
	* testsuite/testsuite_character.h (ctype::do_is, ctype::do_scan_is,
	ctype::do_scan_not, do_toupper, do_tolower): Likewise.
	* testsuite/25_algorithms/replace_copy/check_type.cc (Z::operator=):
	Add missing return statement.
	* testsuite/25_algorithms/replace_copy_if/check_type.cc (Z::operator=):
	Likewise.
	* testsuite/testsuite_iterators.h (output_iterator_wrapper::operator=,
	random_access_iterator_wrapper::operator==): Likewise.
	* testsuite/20_util/functional/binders/1.cc (s::f_int_int_const,
	s::f_int_int, s::f_int_void_const, s::f_int_void): Likewise.
	* testsuite/27_io/types/1.cc (test01): Likewise.
	* testsuite/27_io/basic_ostream/write/wchar_t/1.cc (test01): Likewise.
	* testsuite/27_io/basic_ostream/write/char/1.cc (test01): Likewise.
	* testsuite/21_strings/c_strings/wchar_t/24559.cc (main): Likewise.
	* testsuite/27_io/basic_istream/ignore/wchar_t/2.cc (check): Add static
	cast.
	* testsuite/27_io/basic_istream/ignore/char/2.cc (check): Likewise.
	* testsuite/27_io/basic_istream/getline/wchar_t/5.cc (check): Likewise.
	* testsuite/27_io/basic_istream/getline/char/5.cc (check): Likewise.
	* testsuite/testsuite_allocator.h (check_new): Likewise.
	(check_deallocate_null): Add missing return value.
	* testsuite/ext/pool_allocator/allocate_chunk.cc (test01):
	Make variable unsigned.
	* testsuite/23_containers/vector/modifiers/erase/1.cc (N,N1,N2,N3,N4,
	N5,test01): Likewise.
	* testsuite/26_numerics/valarray/valarray_subset_assignment.cc
	(check_array): Likewise.
	(main): Removed unused variable.
	* testsuite/27_io/basic_streambuf/in_avail/wchar_t/1.cc (test05):
	Removed unused variable.
	* testsuite/27_io/basic_ostream/flush/wchar_t/1.cc (test01): Likewise.
	* testsuite/27_io/basic_ostream/flush/char/1.cc (test01): Likewise.
	* testsuite/27_io/basic_ostream/endl/wchar_t/1.cc (test01): Likewise.
	* testsuite/27_io/basic_ostream/endl/char/1.cc (test01): Likewise.
	* testsuite/27_io/basic_ostream/ends/wchar_t/1.cc (test01): Likewise.
	* testsuite/27_io/basic_ostream/ends/char/1.cc (test01): Likewise.
	* testsuite/tr1/2_general_utilities/memory/shared_ptr/
	assign/shared_ptr.cc (test01): Correct return type.	
	* testsuite/27_io/basic_filebuf/close/char/2.cc (test_02):
	Add default value to close_num.

From-SVN: r109062
parent 0a1a11b2
2005-12-26 Chris Jefferson <chris@bubblescope.net>
* include/ext/mt_allocator.h (__mt_alloc::__mt_alloc): Remove
name of unused parameter.
* include/bits/stream_iterator.h (istream_iterator::istream_iterator):
Construct _M_value.
* include/debug/functions.h (__check_valid_range): Add
__attribute__((unused)).
* include/tr1/hashtable (hashtable::end): Remove name of unused
parameter.
* include/tr1/tuple_iterate.h (tuple::tuple): Likewise.
(tuple::operator=): Add __attribute__((unused)).
* include/tr1/functional (Fnv_hash<4>::hash): Add static_cast.
(Fnv_hash<8>::hash): Likewise.
* testsuite/25_algorithms/iter_swap/20577.cc (swap): Remove name of
unused parameter.
* testsuite/25_algorithms/unique_copy/check_type.cc (S2::S2,X2::X2):
Likewise.
* testsuite/22_locale/ctype/narrow/char/19955.cc (do_narrow): Likewise.
* testsuite/22_locale/ctype/is/char/9858.cc (Derived::do_is,
Derived::do_scan_is, Derived::do_scan_not, Derived2::do_is,
Derived2::do_scan_is, Derived2::do_scan_not): Likewise.
* testsuite/22_locale/time_put/put/wchar_t/12439_1.cc (TP::do_put):
Likewise.
* testsuite/22_locale/time_put/put/wchar_t/12439_3.cc (TP::do_put):
Likewise.
* testsuite/22_locale/time_put/put/char/12439_1.cc (TP::do_put):
Likewise.
* testsuite/22_locale/time_put/put/char/12439_3.cc (TP::do_put):
Likewise.
* testsuite/testsuite_io.h (fail_num_get::do_get, fail_num_put::do_put):
Likewise.
* testsuite/25_algorithms/find/17441.cc (find): Likewise.
* testsuite/23_containers/vector/cons/clear_allocator.cc
(clear_alloc::clear_alloc): Likewise.
* testsuite/23_containers/vector/bool/clear_allocator.cc
(clear_alloc::clear_alloc): Likewise.
* testsuite/23_containers/list/cons/clear_allocator.cc
(clear_alloc::clear_alloc): Likewise.
* testsuite/23_containers/set/modifiers/16728.cc (test_container):
Likewise.
* testsuite/27_io/basic_ios/cons/char/3.cc (char_traits::to_char_type,
to_int_type): Likewise.
* testsuite/27_io/basic_filebuf/imbue/12206.cc (codecvt::do_out, do_in,
do_unshift, do_length): Likewise.
* testsuite/21_strings/basic_string/capacity/1.cc
(operator==(A<T>,A<T>), operator<(A<T>,A<T>),
char_traits::to_char_type, char_traits::to_int_type): Likewise
* testsuite/testsuite_character.h (ctype::do_is, ctype::do_scan_is,
ctype::do_scan_not, do_toupper, do_tolower): Likewise.
* testsuite/25_algorithms/replace_copy/check_type.cc (Z::operator=):
Add missing return statement.
* testsuite/25_algorithms/replace_copy_if/check_type.cc (Z::operator=):
Likewise.
* testsuite/testsuite_iterators.h (output_iterator_wrapper::operator=,
random_access_iterator_wrapper::operator==): Likewise.
* testsuite/20_util/functional/binders/1.cc (s::f_int_int_const,
s::f_int_int, s::f_int_void_const, s::f_int_void): Likewise.
* testsuite/27_io/types/1.cc (test01): Likewise.
* testsuite/27_io/basic_ostream/write/wchar_t/1.cc (test01): Likewise.
* testsuite/27_io/basic_ostream/write/char/1.cc (test01): Likewise.
* testsuite/21_strings/c_strings/wchar_t/24559.cc (main): Likewise.
* testsuite/27_io/basic_istream/ignore/wchar_t/2.cc (check): Add static
cast.
* testsuite/27_io/basic_istream/ignore/char/2.cc (check): Likewise.
* testsuite/27_io/basic_istream/getline/wchar_t/5.cc (check): Likewise.
* testsuite/27_io/basic_istream/getline/char/5.cc (check): Likewise.
* testsuite/testsuite_allocator.h (check_new): Likewise.
(check_deallocate_null): Add missing return value.
* testsuite/ext/pool_allocator/allocate_chunk.cc (test01):
Make variable unsigned.
* testsuite/23_containers/vector/modifiers/erase/1.cc (N,N1,N2,N3,N4,
N5,test01): Likewise.
* testsuite/26_numerics/valarray/valarray_subset_assignment.cc
(check_array): Likewise.
(main): Removed unused variable.
* testsuite/27_io/basic_streambuf/in_avail/wchar_t/1.cc (test05):
Removed unused variable.
* testsuite/27_io/basic_ostream/flush/wchar_t/1.cc (test01): Likewise.
* testsuite/27_io/basic_ostream/flush/char/1.cc (test01): Likewise.
* testsuite/27_io/basic_ostream/endl/wchar_t/1.cc (test01): Likewise.
* testsuite/27_io/basic_ostream/endl/char/1.cc (test01): Likewise.
* testsuite/27_io/basic_ostream/ends/wchar_t/1.cc (test01): Likewise.
* testsuite/27_io/basic_ostream/ends/char/1.cc (test01): Likewise.
* testsuite/tr1/2_general_utilities/memory/shared_ptr/
assign/shared_ptr.cc (test01): Correct return type.
* testsuite/27_io/basic_filebuf/close/char/2.cc (test_02):
Add default value to close_num.
2005-12-24 Paolo Carlini <pcarlini@suse.de> 2005-12-24 Paolo Carlini <pcarlini@suse.de>
* include/bits/stl_algobase.h (fill(const _Deque_iterator&, * include/bits/stl_algobase.h (fill(const _Deque_iterator&,
......
...@@ -60,7 +60,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std) ...@@ -60,7 +60,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
public: public:
/// Construct end of input stream iterator. /// Construct end of input stream iterator.
istream_iterator() istream_iterator()
: _M_stream(0), _M_ok(false) {} : _M_stream(0), _M_value(), _M_ok(false) {}
/// Construct start of input stream iterator. /// Construct start of input stream iterator.
istream_iterator(istream_type& __s) istream_iterator(istream_type& __s)
......
...@@ -154,7 +154,8 @@ namespace __gnu_debug ...@@ -154,7 +154,8 @@ namespace __gnu_debug
template<typename _InputIterator> template<typename _InputIterator>
inline _InputIterator inline _InputIterator
__check_valid_range(const _InputIterator& __first, __check_valid_range(const _InputIterator& __first,
const _InputIterator& __last) const _InputIterator& __last
__attribute__((__unused__)))
{ {
_GLIBCXX_DEBUG_ASSERT(__valid_range(__first, __last)); _GLIBCXX_DEBUG_ASSERT(__valid_range(__first, __last));
return __first; return __first;
...@@ -163,7 +164,8 @@ namespace __gnu_debug ...@@ -163,7 +164,8 @@ namespace __gnu_debug
/** Checks that __s is non-NULL or __n == 0, and then returns __s. */ /** Checks that __s is non-NULL or __n == 0, and then returns __s. */
template<typename _CharT, typename _Integer> template<typename _CharT, typename _Integer>
inline const _CharT* inline const _CharT*
__check_string(const _CharT* __s, const _Integer& __n) __check_string(const _CharT* __s,
const _Integer& __n __attribute__((__unused__)))
{ {
#ifdef _GLIBCXX_DEBUG_PEDANTIC #ifdef _GLIBCXX_DEBUG_PEDANTIC
_GLIBCXX_DEBUG_ASSERT(__s != 0 || __n == 0); _GLIBCXX_DEBUG_ASSERT(__s != 0 || __n == 0);
......
...@@ -631,7 +631,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx) ...@@ -631,7 +631,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
__mt_alloc(const __mt_alloc&) throw() { } __mt_alloc(const __mt_alloc&) throw() { }
template<typename _Tp1, typename _Poolp1> template<typename _Tp1, typename _Poolp1>
__mt_alloc(const __mt_alloc<_Tp1, _Poolp1>& obj) throw() { } __mt_alloc(const __mt_alloc<_Tp1, _Poolp1>&) throw() { }
~__mt_alloc() throw() { } ~__mt_alloc() throw() { }
......
...@@ -1156,7 +1156,7 @@ _GLIBCXX_BEGIN_NAMESPACE(tr1) ...@@ -1156,7 +1156,7 @@ _GLIBCXX_BEGIN_NAMESPACE(tr1)
static std::size_t static std::size_t
hash(const char* first, std::size_t length) hash(const char* first, std::size_t length)
{ {
std::size_t result = 2166136261UL; std::size_t result = static_cast<std::size_t>(2166136261UL);
for (; length > 0; --length) for (; length > 0; --length)
{ {
result ^= (std::size_t)*first++; result ^= (std::size_t)*first++;
...@@ -1172,7 +1172,7 @@ _GLIBCXX_BEGIN_NAMESPACE(tr1) ...@@ -1172,7 +1172,7 @@ _GLIBCXX_BEGIN_NAMESPACE(tr1)
static std::size_t static std::size_t
hash(const char* first, std::size_t length) hash(const char* first, std::size_t length)
{ {
std::size_t result = 14695981039346656037ULL; std::size_t result = static_cast<std::size_t>(14695981039346656037ULL);
for (; length > 0; --length) for (; length > 0; --length)
{ {
result ^= (std::size_t)*first++; result ^= (std::size_t)*first++;
......
...@@ -1103,7 +1103,7 @@ _GLIBCXX_BEGIN_NAMESPACE(tr1) ...@@ -1103,7 +1103,7 @@ _GLIBCXX_BEGIN_NAMESPACE(tr1)
{ return local_iterator(m_buckets[n]); } { return local_iterator(m_buckets[n]); }
local_iterator local_iterator
end(size_type n) end(size_type)
{ return local_iterator(0); } { return local_iterator(0); }
const_local_iterator const_local_iterator
...@@ -1111,7 +1111,7 @@ _GLIBCXX_BEGIN_NAMESPACE(tr1) ...@@ -1111,7 +1111,7 @@ _GLIBCXX_BEGIN_NAMESPACE(tr1)
{ return const_local_iterator(m_buckets[n]); } { return const_local_iterator(m_buckets[n]); }
const_local_iterator const_local_iterator
end(size_type n) const end(size_type) const
{ return const_local_iterator(0); } { return const_local_iterator(0); }
float float
......
...@@ -93,13 +93,13 @@ template<_GLIBCXX_TEMPLATE_PARAMS> ...@@ -93,13 +93,13 @@ template<_GLIBCXX_TEMPLATE_PARAMS>
#else #else
tuple(const tuple& __in) tuple(const tuple&)
{ } { }
#endif #endif
tuple& tuple&
operator=(const tuple& __in) operator=(const tuple& __in __attribute__((__unused__)) )
{ {
_GLIBCXX_TUPLE_ASSIGN _GLIBCXX_TUPLE_ASSIGN
return *this; return *this;
......
...@@ -27,12 +27,12 @@ struct s ...@@ -27,12 +27,12 @@ struct s
{ {
void f_void_int_const(int) const {} void f_void_int_const(int) const {}
void f_void_int(int) {} void f_void_int(int) {}
int f_int_int_const(int) const {} int f_int_int_const(int) const { return 1; }
int f_int_int(int) {} int f_int_int(int) {return 1; }
void f_void_void_const() const {} void f_void_void_const() const {}
void f_void_void() {} void f_void_void() {}
int f_int_void_const() const {} int f_int_void_const() const { return 1; }
int f_int_void() {} int f_int_void() { return 1; }
}; };
void test01(s& a) void test01(s& a)
......
...@@ -28,11 +28,11 @@ template<typename T> ...@@ -28,11 +28,11 @@ template<typename T>
template<typename T> template<typename T>
bool bool
operator==(const A<T>& a, const A<T>& b) { return true; } operator==(const A<T>&, const A<T>&) { return true; }
template<typename T> template<typename T>
bool bool
operator<(const A<T>& a, const A<T>& b) { return true; } operator<(const A<T>&, const A<T>&) { return true; }
struct B { }; struct B { };
...@@ -104,11 +104,11 @@ namespace std ...@@ -104,11 +104,11 @@ namespace std
} }
static char_type static char_type
to_char_type(const int_type& __c) to_char_type(const int_type&)
{ return char_type(); } { return char_type(); }
static int_type static int_type
to_int_type(const char_type& __c) { return int_type(); } to_int_type(const char_type&) { return int_type(); }
static bool static bool
eq_int_type(const int_type& __c1, const int_type& __c2) eq_int_type(const int_type& __c1, const int_type& __c2)
......
...@@ -39,15 +39,15 @@ public: ...@@ -39,15 +39,15 @@ public:
do_is(mask, char_type) const { return true; } do_is(mask, char_type) const { return true; }
const char_type* const char_type*
do_is(const char_type* lo, const char_type* hi, mask* vec) const do_is(const char_type*, const char_type* hi, mask*) const
{ return hi; } { return hi; }
const char_type* const char_type*
do_scan_is(mask m, const char_type* lo, const char_type* hi) const do_scan_is(mask, const char_type*, const char_type* hi) const
{ return hi; } { return hi; }
const char_type* const char_type*
do_scan_not(mask m, const char_type* lo, const char_type* hi) const do_scan_not(mask, const char_type*, const char_type* hi) const
{ return hi; } { return hi; }
}; };
...@@ -58,15 +58,15 @@ public: ...@@ -58,15 +58,15 @@ public:
do_is(mask, char_type) const { called = 1; return true; } do_is(mask, char_type) const { called = 1; return true; }
const char_type* const char_type*
do_is(const char_type* lo, const char_type* hi, mask* vec) const do_is(const char_type*, const char_type* hi, mask*) const
{ called = 5; return hi; } { called = 5; return hi; }
const char_type* const char_type*
do_scan_is(mask m, const char_type* lo, const char_type* hi) const do_scan_is(mask, const char_type*, const char_type* hi) const
{ called = 10; return hi; } { called = 10; return hi; }
const char_type* const char_type*
do_scan_not(mask m, const char_type* lo, const char_type* hi) const do_scan_not(mask, const char_type*, const char_type* hi) const
{ called = 15; return hi; } { called = 15; return hi; }
}; };
......
...@@ -36,7 +36,7 @@ class Ctype1 ...@@ -36,7 +36,7 @@ class Ctype1
protected: protected:
const char* const char*
do_narrow(const char* lo, const char* hi, do_narrow(const char* lo, const char* hi,
char dflt, char* to) const char, char* to) const
{ {
for (int i = 0; lo != hi; ++lo, ++to, ++i) for (int i = 0; lo != hi; ++lo, ++to, ++i)
*to = *lo + i; *to = *lo + i;
......
...@@ -31,7 +31,7 @@ public: ...@@ -31,7 +31,7 @@ public:
protected: protected:
iter_type do_put(iter_type s, std::ios_base&, char_type fill, iter_type do_put(iter_type s, std::ios_base&, char_type fill,
const std::tm* t, char format, char modifier) const const std::tm*, char, char) const
{ {
fill_chars.push_back(fill); fill_chars.push_back(fill);
return s; return s;
......
...@@ -29,8 +29,8 @@ public: ...@@ -29,8 +29,8 @@ public:
mutable std::string format_chars; mutable std::string format_chars;
protected: protected:
iter_type do_put(iter_type s, std::ios_base&, char_type fill, iter_type do_put(iter_type s, std::ios_base&, char_type,
const std::tm* t, char format, char modifier) const const std::tm*, char format, char) const
{ {
format_chars.push_back(format); format_chars.push_back(format);
return s; return s;
......
...@@ -31,7 +31,7 @@ public: ...@@ -31,7 +31,7 @@ public:
protected: protected:
iter_type do_put(iter_type s, std::ios_base&, char_type fill, iter_type do_put(iter_type s, std::ios_base&, char_type fill,
const std::tm* t, char format, char modifier) const const std::tm*, char, char) const
{ {
fill_chars.push_back(fill); fill_chars.push_back(fill);
return s; return s;
......
...@@ -29,8 +29,8 @@ public: ...@@ -29,8 +29,8 @@ public:
mutable std::string format_chars; mutable std::string format_chars;
protected: protected:
iter_type do_put(iter_type s, std::ios_base&, char_type fill, iter_type do_put(iter_type s, std::ios_base&, char_type,
const std::tm* t, char format, char modifier) const const std::tm*, char format, char) const
{ {
format_chars.push_back(format); format_chars.push_back(format);
return s; return s;
......
...@@ -37,11 +37,11 @@ template<typename T> ...@@ -37,11 +37,11 @@ template<typename T>
clear_alloc() throw() clear_alloc() throw()
{ } { }
clear_alloc(clear_alloc const& _wa) throw() clear_alloc(clear_alloc const&) throw() : new_allocator<T>()
{ } { }
template<typename T1> template<typename T1>
clear_alloc(clear_alloc<T1> const& _wa) throw() clear_alloc(clear_alloc<T1> const&) throw()
{ } { }
virtual ~clear_alloc() throw() virtual ~clear_alloc() throw()
......
...@@ -37,11 +37,11 @@ template<typename T> ...@@ -37,11 +37,11 @@ template<typename T>
clear_alloc() throw() clear_alloc() throw()
{ } { }
clear_alloc(clear_alloc const& _wa) throw() clear_alloc(clear_alloc const&) throw() : new_allocator<T>()
{ } { }
template<typename T1> template<typename T1>
clear_alloc(clear_alloc<T1> const& _wa) throw() clear_alloc(clear_alloc<T1> const&) throw()
{ } { }
virtual ~clear_alloc() throw() virtual ~clear_alloc() throw()
......
...@@ -75,7 +75,7 @@ template<typename Container> ...@@ -75,7 +75,7 @@ template<typename Container>
template<typename Container> template<typename Container>
void void
test_container(Container obj, bool run_threaded = false) test_container(Container, bool run_threaded = false)
{ {
do_loop<Container>(); do_loop<Container>();
std::ostringstream comment; std::ostringstream comment;
......
...@@ -37,11 +37,11 @@ template<typename T> ...@@ -37,11 +37,11 @@ template<typename T>
clear_alloc() throw() clear_alloc() throw()
{ } { }
clear_alloc(clear_alloc const& _wa) throw() clear_alloc(clear_alloc const&) throw() : new_allocator<T>()
{ } { }
template<typename T1> template<typename T1>
clear_alloc(clear_alloc<T1> const& _wa) throw() clear_alloc(clear_alloc<T1> const&) throw()
{ } { }
virtual ~clear_alloc() throw() virtual ~clear_alloc() throw()
......
...@@ -37,11 +37,11 @@ template<typename T> ...@@ -37,11 +37,11 @@ template<typename T>
clear_alloc() throw() clear_alloc() throw()
{ } { }
clear_alloc(clear_alloc const& _wa) throw() clear_alloc(clear_alloc const&) throw() : new_allocator<T>()
{ } { }
template<typename T1> template<typename T1>
clear_alloc(clear_alloc<T1> const& _wa) throw() clear_alloc(clear_alloc<T1> const&) throw()
{ } { }
virtual ~clear_alloc() throw() virtual ~clear_alloc() throw()
......
...@@ -29,12 +29,12 @@ const int A2[] = {0, 2, 3, 4, 10, 11, 12, 13, 14, 15}; ...@@ -29,12 +29,12 @@ const int A2[] = {0, 2, 3, 4, 10, 11, 12, 13, 14, 15};
const int A3[] = {0, 2, 3, 4, 10, 11}; const int A3[] = {0, 2, 3, 4, 10, 11};
const int A4[] = {4, 10, 11}; const int A4[] = {4, 10, 11};
const int A5[] = {4, 10}; const int A5[] = {4, 10};
const int N = sizeof(A) / sizeof(int); const unsigned int N = sizeof(A) / sizeof(int);
const int N1 = sizeof(A1) / sizeof(int); const unsigned int N1 = sizeof(A1) / sizeof(int);
const int N2 = sizeof(A2) / sizeof(int); const unsigned int N2 = sizeof(A2) / sizeof(int);
const int N3 = sizeof(A3) / sizeof(int); const unsigned int N3 = sizeof(A3) / sizeof(int);
const int N4 = sizeof(A4) / sizeof(int); const unsigned int N4 = sizeof(A4) / sizeof(int);
const int N5 = sizeof(A5) / sizeof(int); const unsigned int N5 = sizeof(A5) / sizeof(int);
void void
test01() test01()
...@@ -85,17 +85,17 @@ test02() ...@@ -85,17 +85,17 @@ test02()
typedef vec_type::iterator iterator_type; typedef vec_type::iterator iterator_type;
vec_type v, v1, v2, v3, v4, v5; vec_type v, v1, v2, v3, v4, v5;
for (int i = 0; i < N; ++i) for (unsigned int i = 0; i < N; ++i)
v.push_back(std::vector<int>(1, A[i])); v.push_back(std::vector<int>(1, A[i]));
for (int i = 0; i < N1; ++i) for (unsigned int i = 0; i < N1; ++i)
v1.push_back(std::vector<int>(1, A1[i])); v1.push_back(std::vector<int>(1, A1[i]));
for (int i = 0; i < N2; ++i) for (unsigned int i = 0; i < N2; ++i)
v2.push_back(std::vector<int>(1, A2[i])); v2.push_back(std::vector<int>(1, A2[i]));
for (int i = 0; i < N3; ++i) for (unsigned int i = 0; i < N3; ++i)
v3.push_back(std::vector<int>(1, A3[i])); v3.push_back(std::vector<int>(1, A3[i]));
for (int i = 0; i < N4; ++i) for (unsigned int i = 0; i < N4; ++i)
v4.push_back(std::vector<int>(1, A4[i])); v4.push_back(std::vector<int>(1, A4[i]));
for (int i = 0; i < N5; ++i) for (unsigned int i = 0; i < N5; ++i)
v5.push_back(std::vector<int>(1, A5[i])); v5.push_back(std::vector<int>(1, A5[i]));
iterator_type it1 = v.erase(v.begin() + 1); iterator_type it1 = v.erase(v.begin() + 1);
......
...@@ -24,8 +24,8 @@ using namespace std; ...@@ -24,8 +24,8 @@ using namespace std;
template<typename InputIterator, typename Tp> template<typename InputIterator, typename Tp>
InputIterator InputIterator
find(InputIterator first, InputIterator last, find(InputIterator first, InputIterator,
const Tp& val, input_iterator_tag) const Tp&, input_iterator_tag)
{ return first; } { return first; }
// libstdc++/17441 // libstdc++/17441
......
...@@ -47,7 +47,7 @@ test2() ...@@ -47,7 +47,7 @@ test2()
int int_swap_count; int int_swap_count;
struct X {}; struct X {};
void swap(X& i, X& j) void swap(X&, X&)
{ ++int_swap_count; } { ++int_swap_count; }
void void
......
...@@ -34,11 +34,11 @@ struct Z ...@@ -34,11 +34,11 @@ struct Z
{ {
Z& Z&
operator=(const X&) operator=(const X&)
{ } { return *this; }
Z& Z&
operator=(const Y&) operator=(const Y&)
{ } { return *this; }
}; };
bool bool
......
...@@ -34,11 +34,11 @@ struct Z ...@@ -34,11 +34,11 @@ struct Z
{ {
Z& Z&
operator=(const X&) operator=(const X&)
{ } { return *this; }
Z& Z&
operator=(const Y&) operator=(const Y&)
{ } { return *this; }
}; };
bool bool
......
...@@ -30,7 +30,7 @@ struct S1 { }; ...@@ -30,7 +30,7 @@ struct S1 { };
struct S2 struct S2
{ {
S2(const S1& s1) {} S2(const S1&) {}
}; };
bool bool
...@@ -40,7 +40,7 @@ struct X1 { }; ...@@ -40,7 +40,7 @@ struct X1 { };
struct X2 struct X2
{ {
X2(const X1& x1) {} X2(const X1&) {}
}; };
bool bool
......
...@@ -35,14 +35,13 @@ ...@@ -35,14 +35,13 @@
bool check_array(std::valarray<double>& a, double b[]) bool check_array(std::valarray<double>& a, double b[])
{ {
for (int i=0; i < a.size(); i++) for (unsigned int i=0; i < a.size(); i++)
if (a[i] != b[i]) return false; if (a[i] != b[i]) return false;
return true; return true;
} }
int main() int main()
{ {
double dvar = 1.0;
std::valarray<double> val_d(10); // 0 1 2 3 4 5 6 7 8 9 std::valarray<double> val_d(10); // 0 1 2 3 4 5 6 7 8 9
std::valarray<double> val_d1(10); // 10 9 8 7 6 5 4 3 2 1 std::valarray<double> val_d1(10); // 10 9 8 7 6 5 4 3 2 1
......
...@@ -43,7 +43,7 @@ const char name_02[] = "filebuf_virtuals-2.txt"; // empty file, need to create ...@@ -43,7 +43,7 @@ const char name_02[] = "filebuf_virtuals-2.txt"; // empty file, need to create
void test_02() void test_02()
{ {
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
int close_num; int close_num = 0;
// read (ext) // read (ext)
FILE* f2 = fopen(name_01, "r"); FILE* f2 = fopen(name_01, "r");
......
...@@ -65,21 +65,21 @@ namespace std ...@@ -65,21 +65,21 @@ namespace std
static locale::id id; static locale::id id;
protected: protected:
virtual result do_out(mbstate_t&, const Char* from, virtual result do_out(mbstate_t&, const Char*,
const Char* from_end, const Char*,
const Char*& from_next, char* to, const Char*&, char*,
char* to_limit, char*& to_next) const char*, char*&) const
{ return ok; } { return ok; }
virtual result do_in(mbstate_t&, const char* from, virtual result do_in(mbstate_t&, const char*,
const char* from_end, const char*,
const char*& from_next, Char* to, const char*&, Char*,
Char* to_limit, Char*& to_next) const Char*, Char*&) const
{ return ok; } { return ok; }
virtual result do_unshift(mbstate_t&, char* to, char*, virtual result do_unshift(mbstate_t&, char*, char*,
char*& to_next) const char*&) const
{ return noconv; } { return noconv; }
virtual int do_length(mbstate_t&, const char* from, virtual int do_length(mbstate_t&, const char*,
const char* from_end, size_t max) const const char*, size_t) const
{ return 1; } { return 1; }
virtual int do_encoding() const throw() virtual int do_encoding() const throw()
{ return 1; } { return 1; }
......
...@@ -100,11 +100,11 @@ namespace std ...@@ -100,11 +100,11 @@ namespace std
} }
static char_type static char_type
to_char_type(const int_type& __c) to_char_type(const int_type&)
{ return char_type(); } { return char_type(); }
static int_type static int_type
to_int_type(const char_type& __c) { return int_type(); } to_int_type(const char_type&) { return int_type(); }
static bool static bool
eq_int_type(const int_type& __c1, const int_type& __c2) eq_int_type(const int_type& __c1, const int_type& __c2)
......
...@@ -49,7 +49,8 @@ void check(istream& stream, const string& str, unsigned nchunks, char delim) ...@@ -49,7 +49,8 @@ void check(istream& stream, const string& str, unsigned nchunks, char delim)
while (stream.getline(buf, sizeof(buf), delim)) while (stream.getline(buf, sizeof(buf), delim))
{ {
index_new = str.find(delim, index); index_new = str.find(delim, index);
VERIFY( stream.gcount() == index_new - index + 1 ); VERIFY( static_cast<string::size_type>(stream.gcount()) ==
index_new - index + 1 );
VERIFY( !str.compare(index, index_new - index, buf) ); VERIFY( !str.compare(index, index_new - index, buf) );
index = index_new + 1; index = index_new + 1;
++n; ++n;
......
...@@ -51,7 +51,8 @@ check(wistream& stream, const wstring& str, unsigned nchunks, wchar_t delim) ...@@ -51,7 +51,8 @@ check(wistream& stream, const wstring& str, unsigned nchunks, wchar_t delim)
while (stream.getline(buf, sizeof(buf) / sizeof(wchar_t), delim)) while (stream.getline(buf, sizeof(buf) / sizeof(wchar_t), delim))
{ {
index_new = str.find(delim, index); index_new = str.find(delim, index);
VERIFY( stream.gcount() == index_new - index + 1 ); VERIFY( static_cast<string::size_type>(stream.gcount()) ==
index_new - index + 1 );
VERIFY( !str.compare(index, index_new - index, buf) ); VERIFY( !str.compare(index, index_new - index, buf) );
index = index_new + 1; index = index_new + 1;
++n; ++n;
......
...@@ -49,7 +49,8 @@ void check(istream& stream, const string& str, unsigned nchunks, char delim) ...@@ -49,7 +49,8 @@ void check(istream& stream, const string& str, unsigned nchunks, char delim)
while (stream.ignore(numeric_limits<streamsize>::max(), delim).good()) while (stream.ignore(numeric_limits<streamsize>::max(), delim).good())
{ {
index_new = str.find(delim, index); index_new = str.find(delim, index);
VERIFY( stream.gcount() == index_new - index + 1 ); VERIFY( static_cast<string::size_type>(stream.gcount()) ==
index_new - index + 1 );
index = index_new + 1; index = index_new + 1;
++n; ++n;
} }
......
...@@ -51,7 +51,8 @@ check(wistream& stream, const wstring& str, unsigned nchunks, wchar_t delim) ...@@ -51,7 +51,8 @@ check(wistream& stream, const wstring& str, unsigned nchunks, wchar_t delim)
while (stream.ignore(numeric_limits<streamsize>::max(), delim).good()) while (stream.ignore(numeric_limits<streamsize>::max(), delim).good())
{ {
index_new = str.find(delim, index); index_new = str.find(delim, index);
VERIFY( stream.gcount() == index_new - index + 1 ); VERIFY( static_cast<string::size_type>(stream.gcount()) ==
index_new - index + 1 );
index = index_new + 1; index = index_new + 1;
++n; ++n;
} }
......
...@@ -28,7 +28,6 @@ void test01(void) ...@@ -28,7 +28,6 @@ void test01(void)
{ {
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
const char str_lit01[] = " venice ";
const std::string str01(" santa barbara "); const std::string str01(" santa barbara ");
std::string str04; std::string str04;
std::string str05; std::string str05;
......
...@@ -26,7 +26,6 @@ void test01(void) ...@@ -26,7 +26,6 @@ void test01(void)
{ {
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
const wchar_t str_lit01[] = L" venice ";
const std::wstring str01(L" santa barbara "); const std::wstring str01(L" santa barbara ");
std::wstring str04; std::wstring str04;
std::wstring str05; std::wstring str05;
......
...@@ -28,7 +28,6 @@ void test01(void) ...@@ -28,7 +28,6 @@ void test01(void)
{ {
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
const char str_lit01[] = " venice ";
const std::string str01(" santa barbara "); const std::string str01(" santa barbara ");
std::string str04; std::string str04;
std::string str05; std::string str05;
......
...@@ -26,7 +26,6 @@ void test01(void) ...@@ -26,7 +26,6 @@ void test01(void)
{ {
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
const wchar_t str_lit01[] = L" venice ";
const std::wstring str01(L" santa barbara "); const std::wstring str01(L" santa barbara ");
std::wstring str04; std::wstring str04;
std::wstring str05; std::wstring str05;
......
...@@ -28,7 +28,6 @@ void test01(void) ...@@ -28,7 +28,6 @@ void test01(void)
{ {
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
const char str_lit01[] = " venice ";
const std::string str01(" santa barbara "); const std::string str01(" santa barbara ");
std::string str04; std::string str04;
std::string str05; std::string str05;
......
...@@ -26,7 +26,6 @@ void test01(void) ...@@ -26,7 +26,6 @@ void test01(void)
{ {
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
const wchar_t str_lit01[] = L" venice ";
const std::wstring str01(L" santa barbara "); const std::wstring str01(L" santa barbara ");
std::wstring str04; std::wstring str04;
std::wstring str05; std::wstring str05;
......
...@@ -42,8 +42,8 @@ protected: ...@@ -42,8 +42,8 @@ protected:
void test01() void test01()
{ {
bool test = true; bool test __attribute__((unused)) = true;
Buf buf; Buf buf;
std::ostream os(&buf); std::ostream os(&buf);
......
...@@ -40,8 +40,8 @@ protected: ...@@ -40,8 +40,8 @@ protected:
void test01() void test01()
{ {
bool test = true; bool test __attribute__((unused)) = true;
Buf buf; Buf buf;
std::wostream os(&buf); std::wostream os(&buf);
......
...@@ -39,7 +39,7 @@ void test05() ...@@ -39,7 +39,7 @@ void test05()
typedef size_t size_type; typedef size_t size_type;
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
std::streamoff strmof_1, strmof_2; std::streamoff strmof_1;
testbuf sb01; testbuf sb01;
// int in_avail() // int in_avail()
......
...@@ -39,7 +39,7 @@ void test05() ...@@ -39,7 +39,7 @@ void test05()
typedef size_t size_type; typedef size_t size_type;
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
std::streamoff strmof_1, strmof_2; std::streamoff strmof_1;
testbuf sb01; testbuf sb01;
// int in_avail() // int in_avail()
......
...@@ -53,7 +53,7 @@ void test01() ...@@ -53,7 +53,7 @@ void test01()
// The constant 20 comes from __pool_alloc_base::_M_refill. See // The constant 20 comes from __pool_alloc_base::_M_refill. See
// also __pool_alloc_base::_M_allocate_chunk. // also __pool_alloc_base::_M_allocate_chunk.
__pool_alloc<small> alloc_small; __pool_alloc<small> alloc_small;
for (int i = 0; i < 20 * sizeof(big) / sizeof(small) + 1; ++i) for (unsigned int i = 0; i < 20 * sizeof(big) / sizeof(small) + 1; ++i)
alloc_small.allocate(1); alloc_small.allocate(1);
} }
......
...@@ -323,7 +323,7 @@ namespace std ...@@ -323,7 +323,7 @@ namespace std
{ } { }
virtual bool virtual bool
do_is(mask m, char_type c) const do_is(mask, char_type) const
{ return false; } { return false; }
virtual const char_type* virtual const char_type*
...@@ -334,11 +334,11 @@ namespace std ...@@ -334,11 +334,11 @@ namespace std
} }
virtual const char_type* virtual const char_type*
do_scan_is(mask m, const char_type* low, const char_type* high) const do_scan_is(mask, const char_type*, const char_type* high) const
{ return high; } { return high; }
virtual const char_type* virtual const char_type*
do_scan_not(mask m, const char_type* low, const char_type* high) const do_scan_not(mask, const char_type* low, const char_type*) const
{ return low; } { return low; }
virtual char_type virtual char_type
...@@ -346,7 +346,7 @@ namespace std ...@@ -346,7 +346,7 @@ namespace std
{ return c; } { return c; }
virtual const char_type* virtual const char_type*
do_toupper(char_type* low, const char_type* high) const do_toupper(char_type*, const char_type* high) const
{ return high; } { return high; }
virtual char_type virtual char_type
...@@ -354,7 +354,7 @@ namespace std ...@@ -354,7 +354,7 @@ namespace std
{ return c; } { return c; }
virtual const char_type* virtual const char_type*
do_tolower(char_type* low, const char_type* high) const do_tolower(char_type*, const char_type* high) const
{ return high; } { return high; }
virtual char_type virtual char_type
......
...@@ -214,7 +214,7 @@ namespace __gnu_test ...@@ -214,7 +214,7 @@ namespace __gnu_test
protected: protected:
iter_type iter_type
do_get(iter_type a, iter_type, ios_base&, ios_base::iostate&, bool&) const do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, bool&) const
{ throw facet_error(); return iter_type(); } { throw facet_error(); return iter_type(); }
virtual iter_type virtual iter_type
...@@ -222,49 +222,49 @@ namespace __gnu_test ...@@ -222,49 +222,49 @@ namespace __gnu_test
{ throw facet_error(); return iter_type(); } { throw facet_error(); return iter_type(); }
virtual iter_type virtual iter_type
do_get(iter_type, iter_type, ios_base&, ios_base::iostate& __err, do_get(iter_type, iter_type, ios_base&, ios_base::iostate&,
unsigned short&) const unsigned short&) const
{ throw facet_error(); return iter_type(); } { throw facet_error(); return iter_type(); }
virtual iter_type virtual iter_type
do_get(iter_type, iter_type, ios_base&, ios_base::iostate& __err, do_get(iter_type, iter_type, ios_base&, ios_base::iostate&,
unsigned int&) const unsigned int&) const
{ throw facet_error(); return iter_type(); } { throw facet_error(); return iter_type(); }
virtual iter_type virtual iter_type
do_get(iter_type, iter_type, ios_base&, ios_base::iostate& __err, do_get(iter_type, iter_type, ios_base&, ios_base::iostate&,
unsigned long&) const unsigned long&) const
{ throw facet_error(); return iter_type(); } { throw facet_error(); return iter_type(); }
#ifdef _GLIBCXX_USE_LONG_LONG #ifdef _GLIBCXX_USE_LONG_LONG
virtual iter_type virtual iter_type
do_get(iter_type, iter_type, ios_base&, ios_base::iostate& __err, do_get(iter_type, iter_type, ios_base&, ios_base::iostate&,
long long&) const long long&) const
{ throw facet_error(); return iter_type(); } { throw facet_error(); return iter_type(); }
virtual iter_type virtual iter_type
do_get(iter_type, iter_type, ios_base&, ios_base::iostate& __err, do_get(iter_type, iter_type, ios_base&, ios_base::iostate&,
unsigned long long&) const unsigned long long&) const
{ throw facet_error(); return iter_type(); } { throw facet_error(); return iter_type(); }
#endif #endif
virtual iter_type virtual iter_type
do_get(iter_type, iter_type, ios_base&, ios_base::iostate& __err, do_get(iter_type, iter_type, ios_base&, ios_base::iostate&,
float&) const float&) const
{ throw facet_error(); return iter_type(); } { throw facet_error(); return iter_type(); }
virtual iter_type virtual iter_type
do_get(iter_type, iter_type, ios_base&, ios_base::iostate& __err, do_get(iter_type, iter_type, ios_base&, ios_base::iostate&,
double&) const double&) const
{ throw facet_error(); return iter_type(); } { throw facet_error(); return iter_type(); }
virtual iter_type virtual iter_type
do_get(iter_type, iter_type, ios_base&, ios_base::iostate& __err, do_get(iter_type, iter_type, ios_base&, ios_base::iostate&,
long double&) const long double&) const
{ throw facet_error(); return iter_type(); } { throw facet_error(); return iter_type(); }
virtual iter_type virtual iter_type
do_get(iter_type, iter_type, ios_base&, ios_base::iostate& __err, do_get(iter_type, iter_type, ios_base&, ios_base::iostate&,
void*&) const void*&) const
{ throw facet_error(); return iter_type(); } { throw facet_error(); return iter_type(); }
}; };
...@@ -284,37 +284,37 @@ namespace __gnu_test ...@@ -284,37 +284,37 @@ namespace __gnu_test
protected: protected:
iter_type iter_type
do_put(iter_type, ios_base&, char_type __fill, bool __v) const do_put(iter_type, ios_base&, char_type, bool) const
{ throw facet_error(); return iter_type(NULL); } { throw facet_error(); return iter_type(NULL); }
virtual iter_type virtual iter_type
do_put(iter_type, ios_base&, char_type __fill, long __v) const do_put(iter_type, ios_base&, char_type, long) const
{ throw facet_error(); return iter_type(NULL); } { throw facet_error(); return iter_type(NULL); }
virtual iter_type virtual iter_type
do_put(iter_type, ios_base&, char_type __fill, unsigned long) const do_put(iter_type, ios_base&, char_type, unsigned long) const
{ throw facet_error(); return iter_type(NULL); } { throw facet_error(); return iter_type(NULL); }
#ifdef _GLIBCXX_USE_LONG_LONG #ifdef _GLIBCXX_USE_LONG_LONG
virtual iter_type virtual iter_type
do_put(iter_type, ios_base&, char_type __fill, long long __v) const do_put(iter_type, ios_base&, char_type, long long) const
{ throw facet_error(); return iter_type(NULL); } { throw facet_error(); return iter_type(NULL); }
virtual iter_type virtual iter_type
do_put(iter_type, ios_base&, char_type __fill, unsigned long long) const do_put(iter_type, ios_base&, char_type, unsigned long long) const
{ throw facet_error(); return iter_type(NULL); } { throw facet_error(); return iter_type(NULL); }
#endif #endif
virtual iter_type virtual iter_type
do_put(iter_type, ios_base&, char_type __fill, double __v) const do_put(iter_type, ios_base&, char_type, double) const
{ throw facet_error(); return iter_type(NULL); } { throw facet_error(); return iter_type(NULL); }
virtual iter_type virtual iter_type
do_put(iter_type, ios_base&, char_type __fill, long double __v) const do_put(iter_type, ios_base&, char_type, long double) const
{ throw facet_error(); return iter_type(NULL); } { throw facet_error(); return iter_type(NULL); }
virtual iter_type virtual iter_type
do_put(iter_type, ios_base&, char_type __fill, const void* __v) const do_put(iter_type, ios_base&, char_type, const void*) const
{ throw facet_error(); return iter_type(NULL); } { throw facet_error(); return iter_type(NULL); }
}; };
......
...@@ -144,6 +144,7 @@ namespace __gnu_test ...@@ -144,6 +144,7 @@ namespace __gnu_test
{ {
ptr = in.ptr; ptr = in.ptr;
SharedInfo = in.SharedInfo; SharedInfo = in.SharedInfo;
return *this;
} }
output_iterator_wrapper& output_iterator_wrapper&
...@@ -394,6 +395,7 @@ namespace __gnu_test ...@@ -394,6 +395,7 @@ namespace __gnu_test
{ {
this->ptr = in.ptr; this->ptr = in.ptr;
this->SharedInfo = in.SharedInfo; this->SharedInfo = in.SharedInfo;
return *this;
} }
random_access_iterator_wrapper& random_access_iterator_wrapper&
......
...@@ -44,7 +44,7 @@ struct reset_count_struct ...@@ -44,7 +44,7 @@ struct reset_count_struct
// 2.2.3.3 shared_ptr assignment [tr.util.smartptr.shared.assign] // 2.2.3.3 shared_ptr assignment [tr.util.smartptr.shared.assign]
// Assignment from shared_ptr<Y> // Assignment from shared_ptr<Y>
int void
test01() test01()
{ {
reset_count_struct __attribute__((unused)) reset; reset_count_struct __attribute__((unused)) reset;
......
...@@ -57,7 +57,7 @@ struct reset_count_struct ...@@ -57,7 +57,7 @@ struct reset_count_struct
// 2.2.3.3 shared_ptr assignment [tr.util.smartptr.shared.assign] // 2.2.3.3 shared_ptr assignment [tr.util.smartptr.shared.assign]
// Assignment from shared_ptr<Y> // Assignment from shared_ptr<Y>
int void
test01() test01()
{ {
reset_count_struct __attribute__((unused)) reset; reset_count_struct __attribute__((unused)) reset;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment