From 06c22cfa87130bc7fc57e547a3aa47cda948b085 Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 3 Jan 2019 09:26:42 +1100 Subject: Backport: Update suppressions for Cppcheck 1.86. Backport of changeset 7190:24b78f37c441. --- cppcheck.suppress | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'cppcheck.suppress') diff --git a/cppcheck.suppress b/cppcheck.suppress index b89562469..883e79430 100644 --- a/cppcheck.suppress +++ b/cppcheck.suppress @@ -10,6 +10,9 @@ useInitializationList // produces same result on empty collections useStlAlgorithm +// cppcheck 1.86 seems to be misunderstanding flow control in the large switch statement +knownConditionTrueFalse:scintilla/src/Editor.cxx + // Some non-explicit constructors are used for conversions or are private to lexers noExplicitConstructor @@ -26,6 +29,7 @@ passedByValue // Suppress most lexer warnings since the lexers are maintained by others redundantCondition:scintilla/lexers/LexA68k.cxx useInitializationList:scintilla/lexers/LexAsm.cxx +shadowVar:scintilla/lexers/LexAU3.cxx useInitializationList:scintilla/lexers/LexBasic.cxx uninitMemberVar:scintilla/lexers/LexBash.cxx variableScope:scintilla/lexers/LexBash.cxx @@ -46,7 +50,9 @@ variableScope:scintilla/lexers/LexNimrod.cxx variableScope:scintilla/lexers/LexNsis.cxx variableScope:scintilla/lexers/LexOpal.cxx variableScope:scintilla/lexers/LexPB.cxx +shadowVar:scintilla/lexers/LexPowerPro.cxx variableScope:scintilla/lexers/LexProgress.cxx +redundantAssignment:scintilla/lexers/LexRegistry.cxx variableScope:scintilla/lexers/LexRuby.cxx uninitMemberVar:scintilla/lexers/LexRuby.cxx variableScope:scintilla/lexers/LexSpecman.cxx @@ -55,6 +61,7 @@ invalidscanf:scintilla/lexers/LexTCMD.cxx knownConditionTrueFalse:scintilla/lexers/LexTCMD.cxx variableScope:scintilla/lexers/LexTeX.cxx knownConditionTrueFalse:scintilla/lexers/LexVerilog.cxx +shadowVar:scintilla/lexers/LexVHDL.cxx variableScope:scintilla/lexers/LexVHDL.cxx unreadVariable:scintilla/lexers/LexVisualProlog.cxx -- cgit v1.2.3