[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.2' - bridges/source

Jan Holesovsky (via logerrit) logerrit at kemper.freedesktop.org
Mon Dec 2 09:16:10 UTC 2019


 bridges/source/cpp_uno/gcc3_linux_aarch64/abi.cxx     |    2 +-
 bridges/source/cpp_uno/gcc3_linux_aarch64/cpp2uno.cxx |    8 ++++----
 bridges/source/cpp_uno/gcc3_linux_aarch64/uno2cpp.cxx |    8 ++++----
 3 files changed, 9 insertions(+), 9 deletions(-)

New commits:
commit 3c714bf27289463a6e6802d4cdf1ff2431e8c494
Author:     Jan Holesovsky <kendy at collabora.com>
AuthorDate: Fri Nov 1 15:18:49 2019 +0100
Commit:     Jan Holesovsky <kendy at collabora.com>
CommitDate: Mon Dec 2 10:15:31 2019 +0100

    bridges arm64: Use [[falltrough]].
    
    Change-Id: I28d3cabab74bea6ea9f2712c240110a44643c54d
    Reviewed-on: https://gerrit.libreoffice.org/84194
    Reviewed-by: Jan Holesovsky <kendy at collabora.com>
    Tested-by: Jan Holesovsky <kendy at collabora.com>

diff --git a/bridges/source/cpp_uno/gcc3_linux_aarch64/abi.cxx b/bridges/source/cpp_uno/gcc3_linux_aarch64/abi.cxx
index 477879f2f2a0..6335d0c5c8a2 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 4865f49a0421..d11a11b0c965 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,


More information about the Libreoffice-commits mailing list