diff options
author | Tor Lillqvist <tml@iki.fi> | 2012-12-09 22:42:04 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2012-12-09 22:44:26 +0200 |
commit | dc6277ef41dcf529760ad894e0aa124f18722c33 (patch) | |
tree | f7bac640f777539af0b4edc56cf35cf9bac7f02a /sal | |
parent | 7914f867139c06fd751f6e37c9ed3e563388ed62 (diff) |
WaE: deleted function definitions are a C++11 extension
Change-Id: I8f070fb53c0310761c3a0a2407d48ca1c1ac5e18
Diffstat (limited to 'sal')
-rw-r--r-- | sal/inc/rtl/ustrbuf.hxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sal/inc/rtl/ustrbuf.hxx b/sal/inc/rtl/ustrbuf.hxx index 3814a6f5b96c..9850bfa0afda 100644 --- a/sal/inc/rtl/ustrbuf.hxx +++ b/sal/inc/rtl/ustrbuf.hxx @@ -579,10 +579,17 @@ public: // Pointer can be automatically converted to bool, which is unwanted here. // Explicitly delete all pointer append() overloads to prevent this // (except for char* and sal_Unicode* overloads, which are handled elsewhere). +#if defined(__clang__) && defined(LIBO_WERROR) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wc++11-extensions" +#endif template< typename T > typename internal::Enable< void, !internal::CharPtrDetector< T* >::ok && !internal::SalUnicodePtrDetector< T* >::ok >::Type append( T* ) = delete; +#if defined(__clang__) && defined(LIBO_WERROR) +#pragma GCC diagnostic pop +#endif #endif #endif |