clang warning for osl_detail_ObjectRegistry_getMutex() in the .cxx file too
This commit is contained in:
parent
8a2fc6e40f
commit
18f117ae6b
1 changed files with 16 additions and 0 deletions
|
@ -81,11 +81,27 @@ struct DebugBaseMutex : ::rtl::Static<osl::Mutex, DebugBaseMutex> {};
|
|||
|
||||
extern "C" {
|
||||
|
||||
// These functions presumably should not be extern "C", but changing
|
||||
// that would break binary compatibility.
|
||||
#if SUPD < 400
|
||||
#ifdef __clang__
|
||||
#pragma clang diagnostic push
|
||||
// Guard against slightly older clang versions that don't have
|
||||
// -Wreturn-type-c-linkage...
|
||||
#pragma clang diagnostic ignored "-Wunknown-pragmas"
|
||||
#pragma clang diagnostic ignored "-Wreturn-type-c-linkage"
|
||||
#endif
|
||||
#endif
|
||||
osl::Mutex & SAL_CALL osl_detail_ObjectRegistry_getMutex()
|
||||
SAL_THROW_EXTERN_C()
|
||||
{
|
||||
return DebugBaseMutex::get();
|
||||
}
|
||||
#if SUPD < 400
|
||||
#ifdef __clang__
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
#endif
|
||||
|
||||
bool SAL_CALL osl_detail_ObjectRegistry_storeAddresses( char const* pName )
|
||||
SAL_THROW_EXTERN_C()
|
||||
|
|
Loading…
Reference in a new issue