diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2017-12-01 15:10:23 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2017-12-01 15:10:23 +0000 |
commit | ccd9a1e0ef6ec521734cabd1262a385234b183e7 (patch) | |
tree | 48e21e1e00095a4dc70055428cd3bdbd3221df47 /libstdc++-v3 | |
parent | b7b61489b70179c2046df453897f4461c0ea710a (diff) | |
download | gcc-ccd9a1e0ef6ec521734cabd1262a385234b183e7.zip gcc-ccd9a1e0ef6ec521734cabd1262a385234b183e7.tar.gz gcc-ccd9a1e0ef6ec521734cabd1262a385234b183e7.tar.bz2 |
Add comment to fix -Wfallthrough warning
* include/bits/locale_facets_nonio.tcc (money_get::_M_extract): Add
fallthrough comment.
From-SVN: r255318
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 3 | ||||
-rw-r--r-- | libstdc++-v3/include/bits/locale_facets_nonio.tcc | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 8501a66..d8308c3 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,8 @@ 2017-12-01 Jonathan Wakely <jwakely@redhat.com> + * include/bits/locale_facets_nonio.tcc (money_get::_M_extract): Add + fallthrough comment. + * include/bits/node_handle.h (_Node_handle_common::operator=) (_Node_handle_common::_M_swap): Add braces around debug assertions. diff --git a/libstdc++-v3/include/bits/locale_facets_nonio.tcc b/libstdc++-v3/include/bits/locale_facets_nonio.tcc index a449c41..135dd0b 100644 --- a/libstdc++-v3/include/bits/locale_facets_nonio.tcc +++ b/libstdc++-v3/include/bits/locale_facets_nonio.tcc @@ -282,6 +282,7 @@ _GLIBCXX_BEGIN_NAMESPACE_LDBL_OR_CXX11 ++__beg; else __testvalid = false; + // fallthrough case money_base::none: // Only if not at the end of the pattern. if (__i != 3) |