From ccd9a1e0ef6ec521734cabd1262a385234b183e7 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Fri, 1 Dec 2017 15:10:23 +0000 Subject: [PATCH] Add comment to fix -Wfallthrough warning * include/bits/locale_facets_nonio.tcc (money_get::_M_extract): Add fallthrough comment. From-SVN: r255318 --- libstdc++-v3/ChangeLog | 3 +++ libstdc++-v3/include/bits/locale_facets_nonio.tcc | 1 + 2 files changed, 4 insertions(+) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 8501a66fffa..d8308c3f6f4 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,8 @@ 2017-12-01 Jonathan Wakely + * 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 a449c41e6b8..135dd0b9d8f 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) -- 2.30.2