From b1acb9c62701d8f09fafdf5b7c2b690249a277b8 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann <sbergman@redhat.com> Date: Fri, 6 Dec 2019 16:50:38 +0100 Subject: loplugin:external (macOS) * OldEntry in fpicker/source/aqua/resourceprovider.mm was apparently unused ever since it got introduced with 00657aef09d854c74fb426a935a3e8b1fc390bb0 "migrate to boost::gettext" * impl_throwError is used from multiple TU, connectivity/source/drivers/macab/MacabStatement.cxx just missed the relevant #include Change-Id: Iba131da57aa20085bb1c634ba9a3a59566070abd Reviewed-on: https://gerrit.libreoffice.org/84653 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com> --- bridges/source/cpp_uno/gcc3_macosx_x86-64/abi.cxx | 4 ++++ bridges/source/cpp_uno/gcc3_macosx_x86-64/except.cxx | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'bridges') diff --git a/bridges/source/cpp_uno/gcc3_macosx_x86-64/abi.cxx b/bridges/source/cpp_uno/gcc3_macosx_x86-64/abi.cxx index 3da3adac5fc3..ceed901f9e11 100644 --- a/bridges/source/cpp_uno/gcc3_macosx_x86-64/abi.cxx +++ b/bridges/source/cpp_uno/gcc3_macosx_x86-64/abi.cxx @@ -58,6 +58,8 @@ using namespace x86_64; +namespace { + /* Register class used for passing given 64bit part of the argument. These represent classes as documented by the PS ABI, with the exception of SSESF, SSEDF classes, that are basically SSE class, just gcc will @@ -80,6 +82,8 @@ enum x86_64_reg_class X86_64_MEMORY_CLASS }; +} + #define MAX_CLASSES 4 /* x86-64 register passing implementation. See x86-64 ABI for details. Goal diff --git a/bridges/source/cpp_uno/gcc3_macosx_x86-64/except.cxx b/bridges/source/cpp_uno/gcc3_macosx_x86-64/except.cxx index c31cf180a704..c4cfe5123ec9 100644 --- a/bridges/source/cpp_uno/gcc3_macosx_x86-64/except.cxx +++ b/bridges/source/cpp_uno/gcc3_macosx_x86-64/except.cxx @@ -141,6 +141,8 @@ static OUString toUNOname( char const * p ) #endif } +namespace { + class RTTI { typedef std::unordered_map< OUString, std::type_info * > t_rtti_map; @@ -158,6 +160,8 @@ public: std::type_info * getRTTI( typelib_CompoundTypeDescription * ); }; +} + RTTI::RTTI() : m_hApp( dlopen( nullptr, RTLD_LAZY ) ) { -- cgit