summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/test/reducevarscope.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'compilerplugins/clang/test/reducevarscope.cxx')
-rw-r--r--compilerplugins/clang/test/reducevarscope.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/compilerplugins/clang/test/reducevarscope.cxx b/compilerplugins/clang/test/reducevarscope.cxx
index ee600c988efe..ca4ed09be585 100644
--- a/compilerplugins/clang/test/reducevarscope.cxx
+++ b/compilerplugins/clang/test/reducevarscope.cxx
@@ -9,6 +9,9 @@
#include <rtl/ustring.hxx>
+#pragma clang diagnostic ignored "-Wunknown-warning-option" // for Clang < 13
+#pragma clang diagnostic ignored "-Wunused-but-set-variable"
+
void test1()
{
int i = 2; // expected-error {{can reduce scope of var [loplugin:reducevarscope]}}