system_error.cc (generic_category_instance): Add initializer.

2013-04-21  Evgeniy Stepanov  <eugenis@google.com>

	* src/c++11/system_error.cc (generic_category_instance): Add
	initializer.
	(system_category_instance): Likewise.
	* src/c++11/future.cc (__fec): Likewise.

From-SVN: r198115
This commit is contained in:
Evgeniy Stepanov 2013-04-21 08:40:24 +00:00 committed by Jonathan Wakely
parent b10717ebaf
commit 1cbe724ceb
3 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,10 @@
2013-04-21 Evgeniy Stepanov <eugenis@google.com>
* src/c++11/system_error.cc (generic_category_instance): Add
initializer.
(system_category_instance): Likewise.
* src/c++11/future.cc (__fec): Likewise.
2013-04-20 Jonathan Wakely <jwakely.gcc@gmail.com>
* doc/xml/manual/extensions.xml: Fix anachronism.

View File

@ -60,7 +60,7 @@ namespace
const future_error_category&
__future_category_instance() noexcept
{
static const future_error_category __fec;
static const future_error_category __fec{};
return __fec;
}
}

View File

@ -62,8 +62,8 @@ namespace
}
};
const generic_error_category generic_category_instance;
const system_error_category system_category_instance;
const generic_error_category generic_category_instance{};
const system_error_category system_category_instance{};
}
namespace std _GLIBCXX_VISIBILITY(default)