Skip to content

Commit 3d18cea

Browse files
authored
[libc++][regex] Add _LIBCPP_FALLTHROUGH to suppress fallthrough warning (#100821)
1 parent 0381e01 commit 3d18cea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcxx/include/regex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3921,7 +3921,7 @@ _ForwardIterator basic_regex<_CharT, _Traits>::__parse_character_escape(
39213921
if (__hd == -1)
39223922
__throw_regex_error<regex_constants::error_escape>();
39233923
__sum = 16 * __sum + static_cast<unsigned>(__hd);
3924-
// fallthrough
3924+
_LIBCPP_FALLTHROUGH();
39253925
case 'x':
39263926
++__first;
39273927
if (__first == __last)

0 commit comments

Comments
 (0)