aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2018-03-26 15:30:09 +1100
committerNeil <nyamatongwe@gmail.com>2018-03-26 15:30:09 +1100
commit14673a9b38a850a8b5a94e4dd73930f22892dd0f (patch)
tree3c3c053ad8c6733402752c1291e9ec9b78bc5873
parent32d292158ffd2dfabd6dc6d92d52d70a5f8351a1 (diff)
downloadscintilla-mirror-14673a9b38a850a8b5a94e4dd73930f22892dd0f.tar.gz
Backport: Suppress new warnings because of Catch 2.0.1.
Suppress unused private function warnings in ScintillaWin as they are used. Backport of changeset 6654:dde7d711bde3.
-rw-r--r--cppcheck.suppress10
1 files 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