From f42c64cf9a0e5e244c3bb4956b5377ef64f5a180 Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 30 Oct 2019 09:38:23 +1100 Subject: Reduce unwanted warnings from cppcheck. --- cppcheck.suppress | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'cppcheck.suppress') diff --git a/cppcheck.suppress b/cppcheck.suppress index 8b8b189e2..fd9135edd 100644 --- a/cppcheck.suppress +++ b/cppcheck.suppress @@ -25,6 +25,9 @@ shiftTooManyBitsSigned:scintilla/src/MarginView.cxx // ScintillaDocument is providing an API and there are no consumers of the API inside Scintilla unusedFunction:scintilla/qt/ScintillaEdit/ScintillaDocument.cpp +// moc_ files show #error as they are not built with standard context +preprocessorErrorDirective:scintilla/qt/*.cpp + // moc_ files are not understood by cppcheck noValidConfiguration @@ -46,11 +49,11 @@ uninitMemberVar:scintilla/lexers/LexBash.cxx variableScope:scintilla/lexers/LexBash.cxx variableScope:scintilla/lexers/LexBatch.cxx constParameter:scintilla/lexers/LexBullant.cxx -constStatement:scintilla/lexers/LexCaml.cxx variableScope:scintilla/lexers/LexCmake.cxx constParameter:scintilla/lexers/LexCLW.cxx constParameter:scintilla/lexers/LexCOBOL.cxx constParameter:scintilla/lexers/LexCoffeeScript.cxx +constParameter:scintilla/lexers/LexCPP.cxx variableScope:scintilla/lexers/LexCSS.cxx constParameter:scintilla/lexers/LexDataflex.cxx variableScope:scintilla/lexers/LexDataflex.cxx @@ -186,6 +189,9 @@ constVariable:scintilla/lexers/LexVHDL.cxx // bp.itBracket not actually redundant as needed by return statements redundantAssignment:scintilla/lexers/LexCPP.cxx +// Appears spurious for allowTermination +knownConditionTrueFalse:scintilla/lexers/LexHTML.cxx + // Suppress everything in catch.hpp as won't be changing *:scintilla/test/unit/catch.hpp // For now, suppress all test source files as, since Catch 2, cppcheck shows many warnings showing -- cgit v1.2.3