diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2021-06-03 13:44:39 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2021-06-03 15:25:01 +0200 |
commit | 067603dbda470f4333979ad7027458fc22d6d403 (patch) | |
tree | 4d9f282aa658eb6c43adeed74be19b7414f889a8 /compilerplugins/clang/test/unoany.cxx | |
parent | a19062084bcc71ff1690f799a2379fe60bdb8c37 (diff) |
-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 <sbergman@redhat.com>
Diffstat (limited to 'compilerplugins/clang/test/unoany.cxx')
-rw-r--r-- | compilerplugins/clang/test/unoany.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compilerplugins/clang/test/unoany.cxx b/compilerplugins/clang/test/unoany.cxx index 1b4bfaa2beec..15c4b3ae2436 100644 --- a/compilerplugins/clang/test/unoany.cxx +++ b/compilerplugins/clang/test/unoany.cxx @@ -11,6 +11,9 @@ #include "com/sun/star/uno/Any.hxx" +#pragma clang diagnostic ignored "-Wunknown-warning-option" // for Clang < 13 +#pragma clang diagnostic ignored "-Wunused-but-set-variable" + css::uno::Any getAny() { return css::uno::Any(true); } int main() |