diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2012-04-10 13:34:48 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2012-04-10 13:37:11 +0200 |
commit | 20662349e1b9f82c7cd372a06cba9fc4c750b723 (patch) | |
tree | da39d7a38bfa627650c58f692f83473665f751b2 /sal | |
parent | 912e36e911201742633e7c0a0a56f247735ee09c (diff) |
disable clang warning about something that cannot be fixed without BIC change
Diffstat (limited to 'sal')
-rw-r--r-- | sal/inc/osl/diagnose.hxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sal/inc/osl/diagnose.hxx b/sal/inc/osl/diagnose.hxx index 840f7a382c7d..95f509338734 100644 --- a/sal/inc/osl/diagnose.hxx +++ b/sal/inc/osl/diagnose.hxx @@ -70,8 +70,21 @@ SAL_DLLPUBLIC void SAL_CALL osl_detail_ObjectRegistry_revokeObject( ::osl::detail::ObjectRegistryData & rData, void const* pObj ) SAL_THROW_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 +#pragma clang diagnostic ignored "-Wreturn-type-c-linkage" +#endif +#endif SAL_DLLPUBLIC ::osl::Mutex & SAL_CALL osl_detail_ObjectRegistry_getMutex() SAL_THROW_EXTERN_C(); +#if SUPD < 400 +#ifdef __clang__ +#pragma clang diagnostic pop +#endif +#endif } // extern "C" |