From ccfaed3e4d322b1aebedbe5e42f315434af94459 Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 26 Mar 2018 15:30:09 +1100 Subject: Suppress new warnings because of Catch 2.0.1. Suppress unused private function warnings in ScintillaWin as they are used. --- cppcheck.suppress | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/cppcheck.suppress b/cppcheck.suppress index 7a0b9cc01..35b25eac5 100644 --- a/cppcheck.suppress +++ b/cppcheck.suppress @@ -15,6 +15,9 @@ unusedFunction:scintilla/qt/ScintillaEdit/ScintillaDocument.cpp // code legibility. passedByValue +// The three private methods DefWndProc, ScrollText, and ModifyScrollBars are called by superclasses +unusedPrivateFunction:scintilla/win32/ScintillaWin.cxx + // Suppress most lexer warnings since the lexers are maintained by others redundantCondition:scintilla/lexers/LexA68k.cxx useInitializationList:scintilla/lexers/LexAsm.cxx @@ -46,7 +49,6 @@ variableScope:scintilla/lexers/LexVHDL.cxx // Suppress everything in catch.hpp as won't be changing *:scintilla/test/unit/catch.hpp -// Spurious errors due to choice of variadic or two argument TEST_CASE macro -preprocessorErrorDirective:scintilla/test/unit/*.cxx -syntaxError:scintilla/test/unit/UnitTester.cxx -syntaxError:scintilla/test/unit/unitTest.cxx +// For now, suppress all test source files as, since Catch 2, cppcheck shows many warnings showing +// it doesn't understand the REQUIRE macro +*:scintilla/test/unit/*.cxx -- cgit v1.2.3