summaryrefslogtreecommitdiff
path: root/libc/stdio/vfprintf.cpp
diff options
context:
space:
mode:
authorGeorge Burgess IV <gbiv@google.com>2018-08-13 17:44:06 -0700
committerGeorge Burgess IV <gbiv@google.com>2018-08-15 10:11:08 -0700
commitfa5410fdb7664e4561f5adcee406b1913f520d77 (patch)
tree4dc35e592835307b61e88534a7a054dc90cf0759 /libc/stdio/vfprintf.cpp
parenta7573441c1274bbdb3fc992d068ebf97b30a0208 (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/vfprintf.cpp')
-rw-r--r--libc/stdio/vfprintf.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/libc/stdio/vfprintf.cpp b/libc/stdio/vfprintf.cpp
index 7a6786892..a14963eb5 100644
--- a/libc/stdio/vfprintf.cpp
+++ b/libc/stdio/vfprintf.cpp
@@ -206,7 +206,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;
@@ -305,7 +305,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) {
mbstate_t mbs;
@@ -327,7 +327,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();
@@ -453,7 +453,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;
@@ -473,7 +473,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) {
wchar_t* wcp;
@@ -505,7 +505,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;