bridges arm64: Use [[falltrough]].
Change-Id: I28d3cabab74bea6ea9f2712c240110a44643c54d Reviewed-on: https://gerrit.libreoffice.org/84193 Tested-by: Jenkins Reviewed-by: Jan Holesovsky <kendy@collabora.com>
This commit is contained in:
@@ -262,7 +262,7 @@ ReturnKind getReturnKind(typelib_TypeDescription const * type) {
|
||||
switch (type->eTypeClass) {
|
||||
default:
|
||||
assert(false);
|
||||
// fall through to avoid warnings
|
||||
[[fallthrough]];
|
||||
case typelib_TypeClass_VOID:
|
||||
case typelib_TypeClass_BOOLEAN:
|
||||
case typelib_TypeClass_BYTE:
|
||||
|
||||
@@ -187,13 +187,13 @@ void call(
|
||||
switch (rtd->nSize) {
|
||||
case 16:
|
||||
std::memcpy(fpr + 3, static_cast<char *>(retin) + 12, 4);
|
||||
// fall through
|
||||
[[fallthrough]];
|
||||
case 12:
|
||||
std::memcpy(fpr + 2, static_cast<char *>(retin) + 8, 4);
|
||||
// fall through
|
||||
[[fallthrough]];
|
||||
case 8:
|
||||
std::memcpy(fpr + 1, static_cast<char *>(retin) + 4, 4);
|
||||
// fall through
|
||||
[[fallthrough]];
|
||||
case 4:
|
||||
std::memcpy(fpr, retin, 4);
|
||||
break;
|
||||
@@ -286,7 +286,7 @@ extern "C" void vtableCall(
|
||||
TYPELIB_DANGER_RELEASE(td);
|
||||
}
|
||||
}
|
||||
// fall through
|
||||
[[fallthrough]];
|
||||
default:
|
||||
call(
|
||||
proxy, desc,
|
||||
|
||||
@@ -252,13 +252,13 @@ void call(
|
||||
switch (rtd->nSize) {
|
||||
case 16:
|
||||
std::memcpy(static_cast<char *>(ret) + 12, fpr + 3, 4);
|
||||
// fall through
|
||||
[[fallthrough]];
|
||||
case 12:
|
||||
std::memcpy(static_cast<char *>(ret) + 8, fpr + 2, 4);
|
||||
// fall through
|
||||
[[fallthrough]];
|
||||
case 8:
|
||||
std::memcpy(static_cast<char *>(ret) + 4, fpr + 1, 4);
|
||||
// fall through
|
||||
[[fallthrough]];
|
||||
case 4:
|
||||
std::memcpy(ret, fpr, 4);
|
||||
break;
|
||||
@@ -356,7 +356,7 @@ void unoInterfaceProxyDispatch(
|
||||
TYPELIB_DANGER_RELEASE(td);
|
||||
}
|
||||
}
|
||||
// fall through
|
||||
[[fallthrough]];
|
||||
default:
|
||||
call(
|
||||
proxy, slot, mtd->pReturnTypeRef, mtd->nParams,
|
||||
|
||||
Reference in New Issue
Block a user