diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-10-22 15:16:38 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-10-22 15:16:38 +0200 |
commit | 3929eab0c0b329d6631cf7fdba7204c3690e9b8a (patch) | |
tree | 07d7efd47ab809102e093c480d090af25e09cd80 /compilerplugins | |
parent | tdf#120703 (PVS): redundant nullptr check (diff) | |
download | core-3929eab0c0b329d6631cf7fdba7204c3690e9b8a.tar.gz core-3929eab0c0b329d6631cf7fdba7204c3690e9b8a.zip |
Disable loplugin:staticvar for now
produces false positive
> [CXX] svtools/source/svrtf/rtfkeywd.cxx
> /home/sbergman/lo/core/svtools/source/svrtf/rtfkeywd.cxx:38:23: error: var should be const, or whitelisted [loplugin:staticvar]
> static RTF_TokenEntry aRTFTokenTab[] = {
> ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
Change-Id: I7cd96988218d1192ced2fadff911c7ec89088012
Diffstat (limited to 'compilerplugins')
-rw-r--r-- | compilerplugins/clang/staticvar.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compilerplugins/clang/staticvar.cxx b/compilerplugins/clang/staticvar.cxx index b9069b5de61f..2383f61bbfd6 100644 --- a/compilerplugins/clang/staticvar.cxx +++ b/compilerplugins/clang/staticvar.cxx @@ -204,7 +204,7 @@ bool StaticVar::VisitVarDecl(VarDecl const* varDecl) return true; } -loplugin::Plugin::Registration<StaticVar> X("staticvar", true); +loplugin::Plugin::Registration<StaticVar> X("staticvar", false); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |