From ccc12e540151cdb6c176a03dede6fadf6396e3da Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 14 Jan 2014 19:10:31 +1100 Subject: Avoid warnings from cppcheck for testing code. --- cppcheck.suppress | 3 +++ test/unit/testCharClassify.cxx | 2 ++ 2 files changed, 5 insertions(+) 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(); -- cgit v1.2.3