From: Vsevolod Stakhov Date: Fri, 3 May 2019 15:22:14 +0000 (+0100) Subject: [Minor] Do not stop when cannot parse query string in clang plugin X-Git-Tag: 1.9.3~30 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c77208a34e9c1a65bbb96cb61f01e5ceaa798eb3;p=rspamd.git [Minor] Do not stop when cannot parse query string in clang plugin --- 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;