[Libreoffice-commits] core.git: desktop/unx
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Tue Jun 8 08:58:10 UTC 2021
desktop/unx/source/file_image_unx.c | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 489102d28e9c67773d72eedfc4e663f51fe331ea
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Tue Jun 8 10:04:13 2021 +0200
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Tue Jun 8 10:57:29 2021 +0200
Silence -Wunused-but-set-variable (Clang 13 trunk) on volatile variable
(see the comments starting at <https://reviews.llvm.org/D100581#2795966>
"[Clang] -Wunused-but-set-parameter and -Wunused-but-set-variable" that warning
on volatile variables is intentional)
Change-Id: I2f9d0ed4a7f11f0bc2bdea57c0434654cd9fdf95
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116813
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/desktop/unx/source/file_image_unx.c b/desktop/unx/source/file_image_unx.c
index ec229f95ff98..4294a57611aa 100644
--- a/desktop/unx/source/file_image_unx.c
+++ b/desktop/unx/source/file_image_unx.c
@@ -97,6 +97,7 @@ int file_image_pagein (file_image * image)
c ^= ((volatile const char*)(image->m_base))[idx];
}
c ^= ((volatile const char*)(image->m_base))[image->m_size-1];
+ (void)c; // silence Clang 13 trunk -Wunused-but-set-variable
return 0;
}
More information about the Libreoffice-commits
mailing list