From c77208a34e9c1a65bbb96cb61f01e5ceaa798eb3 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 3 May 2019 16:22:14 +0100 Subject: [PATCH] [Minor] Do not stop when cannot parse query string in clang plugin --- clang-plugin/printf_check.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clang-plugin/printf_check.cc b/clang-plugin/printf_check.cc index 4bb0f33a8..76b306b51 100644 --- a/clang-plugin/printf_check.cc +++ b/clang-plugin/printf_check.cc @@ -392,7 +392,8 @@ namespace rspamd { if (!query->isEvaluatable (*pcontext)) { print_warning (std::string ("cannot evaluate query"), E, this->pcontext, this->ci); - return false; + /* It is not assumed to be an error */ + return true; } clang::Expr::EvalResult r; -- 2.39.5