diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-03-18 14:10:33 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-03-18 14:51:17 +0100 |
commit | d77ab56c8befc15816c7f70644dd72f4058642d1 (patch) | |
tree | d166716f446f5373d9dd4182ecf0432a43994957 /xmloff | |
parent | c61ac5d16e2fe1681375a6c37f32d16b7fd2a4ef (diff) |
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 <sbergman@redhat.com>
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/core/xmltoken.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |