diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2012-04-19 14:47:09 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2012-04-19 14:47:09 +0200 |
commit | 18f117ae6bde53f4427c777d7bbfca2cf6afdb04 (patch) | |
tree | c25e19bc601649dc3eadf5cd0ae7b2fc0215fd86 /sal | |
parent | do not refer to a variable that has not been set yet (diff) | |
download | core-18f117ae6bde53f4427c777d7bbfca2cf6afdb04.tar.gz core-18f117ae6bde53f4427c777d7bbfca2cf6afdb04.zip |
clang warning for osl_detail_ObjectRegistry_getMutex() in the .cxx file too
Diffstat (limited to 'sal')
-rw-r--r-- | sal/osl/all/debugbase.cxx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sal/osl/all/debugbase.cxx b/sal/osl/all/debugbase.cxx index 48a9c1aab925..9b3021f55885 100644 --- a/sal/osl/all/debugbase.cxx +++ b/sal/osl/all/debugbase.cxx @@ -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() |