desktop/unx/source/file_image_unx.c | 1 + 1 file changed, 1 insertion(+)
New commits: commit 489102d28e9c67773d72eedfc4e663f51fe331ea Author: Stephan Bergmann <[email protected]> AuthorDate: Tue Jun 8 10:04:13 2021 +0200 Commit: Stephan Bergmann <[email protected]> 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 <[email protected]> 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; } _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
