summaryrefslogtreecommitdiff
path: root/sal/inc/rtl/ustrbuf.hxx
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2012-12-09 23:45:02 +0200
committerTor Lillqvist <tml@iki.fi>2012-12-10 01:22:10 +0200
commita55c3a3875bb78fd7d2e802cde89f690e0d7fbfa (patch)
treeffd509c6cde0e0d702148d2948696f406a5db65e /sal/inc/rtl/ustrbuf.hxx
parentd83b27aed3097a8e25e8e56e2af796205f826270 (diff)
Avoid "deleted function definitions are a C++11 extension" in a better way
Tell also Apple's Clang to compile to the "gnu++0x" standard. Change-Id: Ia9f5f2f5a62ac8c0cbbfbbdffede6f308aea8534
Diffstat (limited to 'sal/inc/rtl/ustrbuf.hxx')
-rw-r--r--sal/inc/rtl/ustrbuf.hxx7
1 files changed, 0 insertions, 7 deletions
diff --git a/sal/inc/rtl/ustrbuf.hxx b/sal/inc/rtl/ustrbuf.hxx
index 9850bfa0afda..3814a6f5b96c 100644
--- a/sal/inc/rtl/ustrbuf.hxx
+++ b/sal/inc/rtl/ustrbuf.hxx
@@ -579,17 +579,10 @@ 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