unotools/source/ucbhelper/tempfile.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit f312256a93b282e041a45c9dfef836220f996432
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Tue Nov 1 08:34:50 2022 +0100
Commit:     Stephan Bergmann <sberg...@redhat.com>
CommitDate: Tue Nov 1 12:19:13 2022 +0100

    -Werror,-Wunused-variable (clang-cl)
    
    Change-Id: I8887a8c151f628c65bb24e63b03893c7b27c0c3c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142088
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sberg...@redhat.com>

diff --git a/unotools/source/ucbhelper/tempfile.cxx 
b/unotools/source/ucbhelper/tempfile.cxx
index efeb872b5d6d..2cf7a94ec5ed 100644
--- a/unotools/source/ucbhelper/tempfile.cxx
+++ b/unotools/source/ucbhelper/tempfile.cxx
@@ -422,7 +422,9 @@ void TempFileFast::CloseStream()
 {
     if (mxStream)
     {
+#if !defined _WIN32
         OUString aName = mxStream->GetFileName();
+#endif
         mxStream.reset();
 #ifdef _WIN32
         // On Windows, the file is opened with FILE_FLAG_DELETE_ON_CLOSE, so 
it will delete as soon as the handle closes.

Reply via email to