toolkit/source/awt/vclxtoolkit.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 98aa81bcb7782600cba17e67908d976188cdce42
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Mon Oct 22 20:50:27 2018 +0200
Commit:     Stephan Bergmann <sberg...@redhat.com>
CommitDate: Mon Oct 22 20:50:27 2018 +0200

    -Werror,-Wunused-function (--disable-assert-always-abort)
    
    Change-Id: I5bdecf34dea5baf6c5ef1c48e5995c2ae8ec78df

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)
 {
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to