From c8bc88e7e2e1b26f18db858b9fc2ba6ee6fa2925 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Tue, 23 Jul 2019 13:14:08 +0200 Subject: [PATCH] Fix compiler error --- cli/cmdlineparser.cpp | 5 ----- test/testvalueflow.cpp | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/cli/cmdlineparser.cpp b/cli/cmdlineparser.cpp index 6ebf60a0c..2b4bf8587 100644 --- a/cli/cmdlineparser.cpp +++ b/cli/cmdlineparser.cpp @@ -181,11 +181,6 @@ bool CmdLineParser::parseFromArgs(int argc, const char* const argv[]) else if (std::strcmp(argv[i], "--inconclusive") == 0) mSettings->inconclusive = true; - // Experimental: this flag says that all functions are "safe". - // todo: add proper configuration options - else if (std::strcmp(argv[i], "--all-functions-are-safe") == 0) - mSettings->allFunctionsAreSafe = true; - // Enforce language (--language=, -x) else if (std::strncmp(argv[i], "--language=", 11) == 0 || std::strcmp(argv[i], "-x") == 0) { std::string str; diff --git a/test/testvalueflow.cpp b/test/testvalueflow.cpp index 74834f409..012ba2cf6 100644 --- a/test/testvalueflow.cpp +++ b/test/testvalueflow.cpp @@ -3910,7 +3910,7 @@ private: const char *code; std::list values; Settings s; - s.allFunctionsAreSafe = true; + s.safeChecks.classes = s.safeChecks.externalFunctions = s.safeChecks.internalFunctions = true; code = "short f(short x) {\n" " return x + 0;\n"