From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtpng3.m.smailru.net (smtpng3.m.smailru.net [94.100.177.149]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id DED5D4765E0 for ; Wed, 30 Dec 2020 11:49:52 +0300 (MSK) Date: Wed, 30 Dec 2020 11:49:46 +0300 From: Igor Munkin Message-ID: <20201230084946.GV5396@tarantool.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Subject: Re: [Tarantool-patches] [PATCH luajit 1/3] misc: fix build with disabled memory profiler List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Sergey Kaplun Cc: tarantool-patches@dev.tarantool.org Sergey, Thanks for the patch! LGTM with a single nit below. On 30.12.20, Sergey Kaplun wrote: > This patch fixes the regression introduced in scope of > b4e6bf0d82100049d29af1aa3196e781270f39d1 ('misc: add Lua API for memory > profiler'). Build is failed with disabled memory profiler because Typo: s/is failed/fails/. > related error messages are not defined. > > This patch fixes build by making LJ_ERR_PROF_MISUSE visible and avoiding > usage of other profiler-related errors when the profiler is disabled. > > Follows up tarantool/tarantool#5442 > --- > src/lib_misc.c | 4 ++++ > src/lj_errmsg.h | 2 +- > 2 files changed, 5 insertions(+), 1 deletion(-) > > -- > 2.28.0 > -- Best regards, IM