diff options
author | Jan Holesovsky <kendy@collabora.com> | 2019-11-01 15:18:49 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2019-12-02 11:34:25 +0100 |
commit | 5313ff56d75e08df4a811ce8b71efd39cfbd8a29 (patch) | |
tree | 30c9acbe03082199fb82d74db96bc10b281bda92 /bridges/source | |
parent | ae63347262401cbb7010fd2939afdae90ee7b102 (diff) |
bridges arm64: Use [[falltrough]].
Change-Id: I28d3cabab74bea6ea9f2712c240110a44643c54d
Reviewed-on: https://gerrit.libreoffice.org/84193
Tested-by: Jenkins
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'bridges/source')
-rw-r--r-- | bridges/source/cpp_uno/gcc3_linux_aarch64/abi.cxx | 2 | ||||
-rw-r--r-- | bridges/source/cpp_uno/gcc3_linux_aarch64/cpp2uno.cxx | 8 | ||||
-rw-r--r-- | bridges/source/cpp_uno/gcc3_linux_aarch64/uno2cpp.cxx | 8 |
3 files changed, 9 insertions, 9 deletions
diff --git a/bridges/source/cpp_uno/gcc3_linux_aarch64/abi.cxx b/bridges/source/cpp_uno/gcc3_linux_aarch64/abi.cxx index a07365a5943e..938011a09a2e 100644 --- a/bridges/source/cpp_uno/gcc3_linux_aarch64/abi.cxx +++ b/bridges/source/cpp_uno/gcc3_linux_aarch64/abi.cxx @@ -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: diff --git a/bridges/source/cpp_uno/gcc3_linux_aarch64/cpp2uno.cxx b/bridges/source/cpp_uno/gcc3_linux_aarch64/cpp2uno.cxx index d867a04dd299..aaf48deb67ca 100644 --- a/bridges/source/cpp_uno/gcc3_linux_aarch64/cpp2uno.cxx +++ b/bridges/source/cpp_uno/gcc3_linux_aarch64/cpp2uno.cxx @@ -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, diff --git a/bridges/source/cpp_uno/gcc3_linux_aarch64/uno2cpp.cxx b/bridges/source/cpp_uno/gcc3_linux_aarch64/uno2cpp.cxx index 32a19de020b1..f03d848521cc 100644 --- a/bridges/source/cpp_uno/gcc3_linux_aarch64/uno2cpp.cxx +++ b/bridges/source/cpp_uno/gcc3_linux_aarch64/uno2cpp.cxx @@ -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, |