diff options
| author | Neil <nyamatongwe@gmail.com> | 2014-01-14 19:10:31 +1100 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2014-01-14 19:10:31 +1100 |
| commit | b0d090751efd8ea21009b094b236dc03cf8fec62 (patch) | |
| tree | dbde3ecc293cc5b5ac1a462401efc9c4a82ed266 | |
| parent | 0f43c4932dae5ea0c66595f15543373948b48457 (diff) | |
| download | scintilla-mirror-b0d090751efd8ea21009b094b236dc03cf8fec62.tar.gz | |
Avoid warnings from cppcheck for testing code.
| -rw-r--r-- | cppcheck.suppress | 3 | ||||
| -rw-r--r-- | test/unit/testCharClassify.cxx | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/cppcheck.suppress b/cppcheck.suppress index b263542bf..fe31d215b 100644 --- a/cppcheck.suppress +++ b/cppcheck.suppress @@ -40,3 +40,6 @@ variableScope:scintilla/lexers/LexVHDL.cxx // Suppress C-style pointer casting for Qt code as won't be changing
cstyleCast:scintilla/qt/ScintillaEdit/ScintillaDocument.cpp
+
+// Suppress everything in catch.hpp as won't be changing
+*:scintilla/test/unit/catch.hpp
diff --git a/test/unit/testCharClassify.cxx b/test/unit/testCharClassify.cxx index ef5f23ce1..ea084f3b2 100644 --- a/test/unit/testCharClassify.cxx +++ b/test/unit/testCharClassify.cxx @@ -13,6 +13,8 @@ // Test CharClassify. class CharClassifyTest { + // Avoid warnings, private so never called. + CharClassifyTest(const CharClassifyTest &); protected: CharClassifyTest() { pcc = new CharClassify(); |
