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/unusedenumconstants.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/unusedenumconstants.cxx')
-rw-r--r-- | compilerplugins/clang/test/unusedenumconstants.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compilerplugins/clang/test/unusedenumconstants.cxx b/compilerplugins/clang/test/unusedenumconstants.cxx index 189a037670b8..3f69e8993f04 100644 --- a/compilerplugins/clang/test/unusedenumconstants.cxx +++ b/compilerplugins/clang/test/unusedenumconstants.cxx @@ -114,6 +114,7 @@ void test6() Enum6 foo = Enum6::Modules; foo &= ~Enum6::Top; foo &= (~Enum6::Top); + (void)foo; }; /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ |