Fix missing returns in libstdc++ header and tests

* include/bits/locale_conv.h (wbuffer_convert::_M_put): Add missing
	return statement.
	* testsuite/21_strings/basic_string_view/operations/copy/char/1.cc:
	Return void.
	* testsuite/21_strings/basic_string_view/operations/copy/wchar_t/1.cc:
	Likewise.
	* testsuite/23_containers/map/modifiers/insert_or_assign/1.cc: Add
	missing return statements.
	* testsuite/23_containers/unordered_map/modifiers/insert_or_assign.cc:
	Likewise.
	* testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
	Return void.
	* testsuite/special_functions/14_expint/pr68397.cc: Likewise.

From-SVN: r249238
This commit is contained in:
Jonathan Wakely 2017-06-16 09:13:37 +01:00 committed by Jonathan Wakely
parent 32e37414af
commit 6ec3c9c841
8 changed files with 25 additions and 4 deletions

View File

@ -1,3 +1,19 @@
2017-06-16 Jonathan Wakely <jwakely@redhat.com>
* include/bits/locale_conv.h (wbuffer_convert::_M_put): Add missing
return statement.
* testsuite/21_strings/basic_string_view/operations/copy/char/1.cc:
Return void.
* testsuite/21_strings/basic_string_view/operations/copy/wchar_t/1.cc:
Likewise.
* testsuite/23_containers/map/modifiers/insert_or_assign/1.cc: Add
missing return statements.
* testsuite/23_containers/unordered_map/modifiers/insert_or_assign.cc:
Likewise.
* testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
Return void.
* testsuite/special_functions/14_expint/pr68397.cc: Likewise.
2017-06-16 François Dumont <fdumont@gcc.gnu.org>
* include/bits/stl_bvector.h

View File

@ -482,6 +482,7 @@ _GLIBCXX_END_NAMESPACE_CXX11
{
if (_M_buf->sputn(__p, __n) < __n)
return false;
return true;
}
// convert the put area and write to the byte stream buffer

View File

@ -22,7 +22,7 @@
#include <string_view>
#include <testsuite_hooks.h>
bool
void
test01()
{
typedef std::string_view::size_type csize_type;

View File

@ -22,7 +22,7 @@
#include <string_view>
#include <testsuite_hooks.h>
bool
void
test01()
{
typedef std::wstring_view::size_type csize_type;

View File

@ -39,10 +39,12 @@ struct Val
{
val = other.val;
other.moved_from_assign = true;
return *this;
}
Val& operator=(const Val& other)
{
val = other.val;
return *this;
}
};

View File

@ -38,10 +38,12 @@ struct Val
{
val = other.val;
other.moved_from_assign = true;
return *this;
}
Val& operator=(const Val& other)
{
val = other.val;
return *this;
}
};

View File

@ -50,7 +50,7 @@ void test12_aux(bool integer_type)
VERIFY(is.fail());
}
bool test12()
void test12()
{
test12_aux<short>(true);
test12_aux<int>(true);

View File

@ -23,7 +23,7 @@
#include <cmath>
#include <testsuite_hooks.h>
int
void
test01()
{
// Answers from Wolfram Alpha.