xmloff/source/core/xmltoken.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit d77ab56c8befc15816c7f70644dd72f4058642d1
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Wed Mar 18 14:10:33 2020 +0100
Commit:     Stephan Bergmann <sberg...@redhat.com>
CommitDate: Wed Mar 18 14:51:17 2020 +0100

    Avoid -Werror=unused-but-set-variable
    
    ...in --enable-debug --enable-werror --disable-assert-always-abort builds 
like
    <https://ci.libreoffice.org//job/lo_tb_random_config_linux/2279/>:
    
    > 
/lo/home/tdf/lode/jenkins/workspace/lo_tb_random_config_linux/xmloff/source/core/xmltoken.cxx:3368:18:
 error: variable ‘foundDuplicate’ set but not used 
[-Werror=unused-but-set-variable]
    >  3368 |             bool foundDuplicate = false;
    >       |                  ^~~~~~~~~~~~~~
    
    Change-Id: If9d433082de84c433132276e171ba5c42c24b61c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90699
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sberg...@redhat.com>

diff --git a/xmloff/source/core/xmltoken.cxx b/xmloff/source/core/xmltoken.cxx
index 48fc80a37b0b..92abc4cef73e 100644
--- a/xmloff/source/core/xmltoken.cxx
+++ b/xmloff/source/core/xmltoken.cxx
@@ -3357,7 +3357,7 @@ namespace xmloff::token {
     // get OUString representation of token
     const OUString& GetXMLToken( enum XMLTokenEnum eToken )
     {
-#if OSL_DEBUG_LEVEL > 0
+#if OSL_DEBUG_LEVEL > 0 && !defined NDEBUG
         static bool s_bChecked = false;
         if (!s_bChecked)
         {
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to