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 | ccc12e540151cdb6c176a03dede6fadf6396e3da (patch) | |
tree | cbe8fcd6b3b03d3911cd09ac8457a21bbe7fba41 | |
parent | ca2775205e4e722572138106ad714bd8ccdb5fc2 (diff) | |
download | scintilla-mirror-ccc12e540151cdb6c176a03dede6fadf6396e3da.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(); |