commit c77208a: [Minor] Do not stop when cannot parse query string in clang plugin
Vsevolod Stakhov
vsevolod at highsecure.ru
Fri May 3 15:28:05 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-05-03 16:22:14 +0100
URL: https://github.com/rspamd/rspamd/commit/c77208a34e9c1a65bbb96cb61f01e5ceaa798eb3 (HEAD -> master)
[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;
More information about the Commits
mailing list