[[fallthrough]] is in C++17 and C23.
No need for workarounds any more.
Change-Id: Ib90f8139b47b36d372adb879b8e809212ce3ac83
diff --git a/libc/stdio/vfwprintf.cpp b/libc/stdio/vfwprintf.cpp
index 89e889e..5ba6379 100644
--- a/libc/stdio/vfwprintf.cpp
+++ b/libc/stdio/vfwprintf.cpp
@@ -212,7 +212,7 @@
if (width >= 0) goto rflag;
if (width == INT_MIN) goto overflow;
width = -width;
- __BIONIC_FALLTHROUGH;
+ [[fallthrough]];
case '-':
flags |= LADJUST;
goto rflag;
@@ -317,7 +317,7 @@
goto nosign;
case 'C':
flags |= LONGINT;
- __BIONIC_FALLTHROUGH;
+ [[fallthrough]];
case 'c':
if (flags & LONGINT)
*(cp = buf) = (wchar_t)GETARG(wint_t);
@@ -328,7 +328,7 @@
break;
case 'D':
flags |= LONGINT;
- __BIONIC_FALLTHROUGH;
+ [[fallthrough]];
case 'd':
case 'i':
_umax = SARG();
@@ -470,7 +470,7 @@
print_utf8(strerror_r(caller_errno, reinterpret_cast<char*>(buf), sizeof(buf)), prec);
case 'O':
flags |= LONGINT;
- __BIONIC_FALLTHROUGH;
+ [[fallthrough]];
case 'o':
_umax = UARG();
base = OCT;
@@ -490,7 +490,7 @@
goto nosign;
case 'S':
flags |= LONGINT;
- __BIONIC_FALLTHROUGH;
+ [[fallthrough]];
case 's':
if (flags & LONGINT) {
if ((cp = GETARG(wchar_t*)) == nullptr) cp = const_cast<wchar_t*>(L"(null)");
@@ -512,7 +512,7 @@
break;
case 'U':
flags |= LONGINT;
- __BIONIC_FALLTHROUGH;
+ [[fallthrough]];
case 'u':
_umax = UARG();
base = DEC;