diff options
author | Evgeniy Stepanov <eugenis@google.com> | 2013-04-21 08:40:24 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2013-04-21 09:40:24 +0100 |
commit | 1cbe724cebdc966678d80c23b032553af21c25d2 (patch) | |
tree | d0ebaa831a3019cab3414ec09f11467652f7d9aa /libstdc++-v3 | |
parent | b10717ebafd3f082cb8ff9342a18d0e72f285d50 (diff) | |
download | gcc-1cbe724cebdc966678d80c23b032553af21c25d2.zip gcc-1cbe724cebdc966678d80c23b032553af21c25d2.tar.gz gcc-1cbe724cebdc966678d80c23b032553af21c25d2.tar.bz2 |
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
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 7 | ||||
-rw-r--r-- | libstdc++-v3/src/c++11/future.cc | 2 | ||||
-rw-r--r-- | libstdc++-v3/src/c++11/system_error.cc | 4 |
3 files changed, 10 insertions, 3 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index b8c46d1..ff36bc8 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -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. diff --git a/libstdc++-v3/src/c++11/future.cc b/libstdc++-v3/src/c++11/future.cc index 2c96583..906ded5 100644 --- a/libstdc++-v3/src/c++11/future.cc +++ b/libstdc++-v3/src/c++11/future.cc @@ -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; } } diff --git a/libstdc++-v3/src/c++11/system_error.cc b/libstdc++-v3/src/c++11/system_error.cc index f758357..453c687 100644 --- a/libstdc++-v3/src/c++11/system_error.cc +++ b/libstdc++-v3/src/c++11/system_error.cc @@ -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) |