From 219ae45362c170ed3de15bc3cd33d3eda5a8bbe5 Mon Sep 17 00:00:00 2001 From: krigga Date: Mon, 12 Aug 2024 16:27:34 +0300 Subject: [PATCH] fix: warnings --- crypto/func/func.h | 2 +- crypto/func/parse-func.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto/func/func.h b/crypto/func/func.h index 6b97079dd..f3104c37f 100644 --- a/crypto/func/func.h +++ b/crypto/func/func.h @@ -694,11 +694,11 @@ struct CodeBlob { enum { _AllowPostModification = 1, _ComputeAsmLtr = 2 }; int var_cnt, in_var_cnt, op_cnt; TypeExpr* ret_type; - std::string name; SrcLocation loc; std::vector vars; std::unique_ptr ops; std::unique_ptr* cur_ops; + std::string name; std::stack*> cur_ops_stack; int flags = 0; bool require_callxargs = false; diff --git a/crypto/func/parse-func.cpp b/crypto/func/parse-func.cpp index 3f1a4d5c0..ba2ceb67f 100644 --- a/crypto/func/parse-func.cpp +++ b/crypto/func/parse-func.cpp @@ -978,7 +978,7 @@ void combine_parallel(val& x, const val y) { } } // namespace blk_fl -blk_fl::val insert_debug_info(Lexer& lex, CodeBlob& code, bool first_stmt, bool ret) { +void insert_debug_info(Lexer& lex, CodeBlob& code, bool first_stmt, bool ret) { if (with_debug_info) { auto& op = code.emplace_back(lex.cur().loc, Op::_DebugInfo); op.simple_int_const = (int) debug_infos.size();