From d7777467a3a06bc367d0f9aa1bbf9e361609da7d Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Mon, 20 Jun 2016 14:37:23 +0200 Subject: [PATCH] bridges: -Werror,-Wimplicit-fallthrough Change-Id: I1ad51d4dc7e6bddfc5fa8d6252a7d6349bd5dfb7 --- bridges/source/cpp_uno/gcc3_linux_intel/callvirtualmethod.cxx | 1 + bridges/source/cpp_uno/gcc3_linux_intel/cpp2uno.cxx | 3 ++- bridges/source/cpp_uno/gcc3_linux_intel/uno2cpp.cxx | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/bridges/source/cpp_uno/gcc3_linux_intel/callvirtualmethod.cxx b/bridges/source/cpp_uno/gcc3_linux_intel/callvirtualmethod.cxx index 94d94d864b9c..4fe126cca49d 100644 --- a/bridges/source/cpp_uno/gcc3_linux_intel/callvirtualmethod.cxx +++ b/bridges/source/cpp_uno/gcc3_linux_intel/callvirtualmethod.cxx @@ -107,6 +107,7 @@ void CPPU_CURRENT_NAMESPACE::callVirtualMethod( case typelib_TypeClass_HYPER: case typelib_TypeClass_UNSIGNED_HYPER: static_cast(pRegisterReturn)[1] = edx; + SAL_FALLTHROUGH; case typelib_TypeClass_LONG: case typelib_TypeClass_UNSIGNED_LONG: case typelib_TypeClass_CHAR: diff --git a/bridges/source/cpp_uno/gcc3_linux_intel/cpp2uno.cxx b/bridges/source/cpp_uno/gcc3_linux_intel/cpp2uno.cxx index fcbe63047345..a440fc455ed8 100644 --- a/bridges/source/cpp_uno/gcc3_linux_intel/cpp2uno.cxx +++ b/bridges/source/cpp_uno/gcc3_linux_intel/cpp2uno.cxx @@ -323,7 +323,8 @@ extern "C" void cpp_vtable_call( } TYPELIB_DANGER_RELEASE( pTD ); } - } // else perform queryInterface() + SAL_FALLTHROUGH; // else perform queryInterface() + } default: cpp2uno_call( pCppI, aMemberDescr.get(), diff --git a/bridges/source/cpp_uno/gcc3_linux_intel/uno2cpp.cxx b/bridges/source/cpp_uno/gcc3_linux_intel/uno2cpp.cxx index d7679ea5e490..c2d0363dd522 100644 --- a/bridges/source/cpp_uno/gcc3_linux_intel/uno2cpp.cxx +++ b/bridges/source/cpp_uno/gcc3_linux_intel/uno2cpp.cxx @@ -348,7 +348,8 @@ void unoInterfaceProxyDispatch( } TYPELIB_DANGER_RELEASE( pTD ); } - } // else perform queryInterface() + SAL_FALLTHROUGH; // else perform queryInterface() + } default: // dependent dispatch cpp_call(