From c3474c4ef93c67834ebd0cdc40c6bbb342112f7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Tue, 8 May 2007 15:23:42 +0000 Subject: [PATCH] Inactivated tests that are not accurate --- main.cpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/main.cpp b/main.cpp index 9519f801e..f554ef2be 100644 --- a/main.cpp +++ b/main.cpp @@ -59,16 +59,18 @@ int main(int argc, char* argv[]) tokens = tokens_back = NULL; Tokenize(argv[argc - 1]); - std::ofstream f("tokens.txt"); - for (TOKEN *tok = tokens; tok; tok = tok->next) - f << tok->linenr << ":" << tok->str << '\n'; - f.close(); + //std::ofstream f("tokens.txt"); + //for (TOKEN *tok = tokens; tok; tok = tok->next) + // f << tok->linenr << ":" << tok->str << '\n'; + //f.close(); // Check that all class constructors are ok. - CheckConstructors(); + // Temporarily inactivated to avoid any false positives + //CheckConstructors(); // Check that all private functions are called. - CheckUnusedPrivateFunctions(); + // Temporarily inactivated to avoid any false positives + //CheckUnusedPrivateFunctions(); // Check that the memsets are valid. // This function can do dangerous things if used wrong. @@ -85,7 +87,7 @@ int main(int argc, char* argv[]) // Including header //WarningIncludeHeader(); - // + // if (a) delete a; WarningRedundantCode(); return 0;