diff options
author | George Burgess IV <gbiv@google.com> | 2018-08-13 17:44:06 -0700 |
---|---|---|
committer | George Burgess IV <gbiv@google.com> | 2018-08-15 10:11:08 -0700 |
commit | fa5410fdb7664e4561f5adcee406b1913f520d77 (patch) | |
tree | 4dc35e592835307b61e88534a7a054dc90cf0759 /libc/stdio/vfwprintf.cpp | |
parent | a7573441c1274bbdb3fc992d068ebf97b30a0208 (diff) |
libc: enable -Wimplicit-fallthrough
libc had some -Wimplicit-fallthrough warnings. They all seem to be
benign. We're trying to enable this flag globally, so we need to
annotate these breaks here.
Bug: 112564944
Test: Builds
Change-Id: I5afae694cc4cf26ad1a61e2c8ae91f00cda7c733
Diffstat (limited to 'libc/stdio/vfwprintf.cpp')
-rw-r--r-- | libc/stdio/vfwprintf.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libc/stdio/vfwprintf.cpp b/libc/stdio/vfwprintf.cpp index ae0b62fef..1c3b80d99 100644 --- a/libc/stdio/vfwprintf.cpp +++ b/libc/stdio/vfwprintf.cpp @@ -195,7 +195,7 @@ int FUNCTION_NAME(FILE* fp, const CHAR_TYPE* fmt0, va_list ap) { if (width >= 0) goto rflag; if (width == INT_MIN) goto overflow; width = -width; - /* FALLTHROUGH */ + __BIONIC_FALLTHROUGH; case '-': flags |= LADJUST; goto rflag; @@ -294,7 +294,7 @@ int FUNCTION_NAME(FILE* fp, const CHAR_TYPE* fmt0, va_list ap) { goto rflag; case 'C': flags |= LONGINT; - /*FALLTHROUGH*/ + __BIONIC_FALLTHROUGH; case 'c': if (flags & LONGINT) *(cp = buf) = (wchar_t)GETARG(wint_t); @@ -305,7 +305,7 @@ int FUNCTION_NAME(FILE* fp, const CHAR_TYPE* fmt0, va_list ap) { break; case 'D': flags |= LONGINT; - /*FALLTHROUGH*/ + __BIONIC_FALLTHROUGH; case 'd': case 'i': _umax = SARG(); @@ -438,7 +438,7 @@ int FUNCTION_NAME(FILE* fp, const CHAR_TYPE* fmt0, va_list ap) { __fortify_fatal("%%n not allowed on Android"); case 'O': flags |= LONGINT; - /*FALLTHROUGH*/ + __BIONIC_FALLTHROUGH; case 'o': _umax = UARG(); base = OCT; @@ -458,7 +458,7 @@ int FUNCTION_NAME(FILE* fp, const CHAR_TYPE* fmt0, va_list ap) { goto nosign; case 'S': flags |= LONGINT; - /*FALLTHROUGH*/ + __BIONIC_FALLTHROUGH; case 's': if (flags & LONGINT) { if ((cp = GETARG(wchar_t*)) == nullptr) cp = const_cast<wchar_t*>(L"(null)"); @@ -486,7 +486,7 @@ int FUNCTION_NAME(FILE* fp, const CHAR_TYPE* fmt0, va_list ap) { break; case 'U': flags |= LONGINT; - /*FALLTHROUGH*/ + __BIONIC_FALLTHROUGH; case 'u': _umax = UARG(); base = DEC; |