From 98aa81bcb7782600cba17e67908d976188cdce42 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 22 Oct 2018 20:50:27 +0200 Subject: -Werror,-Wunused-function (--disable-assert-always-abort) Change-Id: I5bdecf34dea5baf6c5ef1c48e5995c2ae8ec78df --- toolkit/source/awt/vclxtoolkit.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'toolkit') diff --git a/toolkit/source/awt/vclxtoolkit.cxx b/toolkit/source/awt/vclxtoolkit.cxx index 622a2981e73a..682d4365e217 100644 --- a/toolkit/source/awt/vclxtoolkit.cxx +++ b/toolkit/source/awt/vclxtoolkit.cxx @@ -761,10 +761,12 @@ static ComponentInfo const aComponentInfos [] = { OUStringLiteral("workwindow"), WindowType::WORKWINDOW } }; +#if !defined NDEBUG bool ComponentInfoCompare( const ComponentInfo & lhs, const ComponentInfo & rhs) { return rtl_str_compare_WithLength(lhs.sName.data, lhs.sName.size, rhs.sName.data, rhs.sName.size) < 0; } +#endif bool ComponentInfoFindCompare( const ComponentInfo & lhs, const OUString & s) { -- cgit