summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2021-06-08 10:04:13 +0200
committerStephan Bergmann <sbergman@redhat.com>2021-06-08 10:57:29 +0200
commit489102d28e9c67773d72eedfc4e663f51fe331ea (patch)
tree270bb31189c7a618fe5b7f8578a50de0be48c545 /desktop
parent93605ab85a8b62dbfb59a9181a26b75a032b9a94 (diff)
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@redhat.com>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/unx/source/file_image_unx.c1
1 files changed, 1 insertions, 0 deletions
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;
}