From 067603dbda470f4333979ad7027458fc22d6d403 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 3 Jun 2021 13:44:39 +0200 Subject: -Wunused-but-set-{parameter,variable} in CompilerTest_compilerplugins_clang ...new with Clang trunk 13. As a rule of thumb, this change adds explicit cast-to-void silencing in those .cxx that already contained other such silencing casts and adds wholesale #pragma clang diagnostic ignored in all others. Change-Id: I1884496ee1aa81aaf3c8b3533534a4b69b185e9e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116660 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- compilerplugins/clang/test/passparamsbyref.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'compilerplugins/clang/test/passparamsbyref.cxx') diff --git a/compilerplugins/clang/test/passparamsbyref.cxx b/compilerplugins/clang/test/passparamsbyref.cxx index e58aa79bcaa8..010556a67b6e 100644 --- a/compilerplugins/clang/test/passparamsbyref.cxx +++ b/compilerplugins/clang/test/passparamsbyref.cxx @@ -9,6 +9,9 @@ #include +#pragma clang diagnostic ignored "-Wunknown-warning-option" // for Clang < 13 +#pragma clang diagnostic ignored "-Wunused-but-set-variable" + struct S { OUString mv1; OUString mv2; -- cgit