diff options
Diffstat (limited to 'clang-plugin/printf_check.cc')
-rw-r--r-- | clang-plugin/printf_check.cc | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/clang-plugin/printf_check.cc b/clang-plugin/printf_check.cc index 9b4819d08..f8a78aa0b 100644 --- a/clang-plugin/printf_check.cc +++ b/clang-plugin/printf_check.cc @@ -187,9 +187,6 @@ namespace rspamd { case 'D': return llvm::make_unique<PrintfArgChecker> (int32_arg_handler, this->pcontext, this->ci); - case 'B': - return llvm::make_unique<PrintfArgChecker> (gboolean_arg_handler, - this->pcontext, this->ci); case 'T': return llvm::make_unique<PrintfArgChecker> (tok_arg_handler, this->pcontext, this->ci); @@ -369,7 +366,7 @@ namespace rspamd { format_specs = { 's', 'd', 'l', 'L', 'v', 'V', 'f', 'F', 'g', 'G', - 'T', 'z', 'D', 'c', 'p', 'P', 'e', 'B' + 'T', 'z', 'D', 'c', 'p', 'P', 'e' }; }; @@ -720,15 +717,6 @@ namespace rspamd { } static bool - gboolean_arg_handler (const Expr *arg, struct PrintfArgChecker *ctx) - { - return check_builtin_type (arg, - ctx, - {BuiltinType::Kind::Int}, // gboolean is int in fact - "%b"); - } - - static bool check_struct_type (const Expr *arg, struct PrintfArgChecker *ctx, const std::string &sname, const std::string &fmt) { |