Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:23
erlang
0858-erts-Fix-some-variable-not-used-warnings.p...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0858-erts-Fix-some-variable-not-used-warnings.patch of Package erlang
From d20b990cdab7277e8f814802d5866e1debc0ed50 Mon Sep 17 00:00:00 2001 From: Sverker Eriksson <sverker@erlang.org> Date: Tue, 25 Jan 2022 18:33:12 +0100 Subject: [PATCH 1/3] erts: Fix some 'variable not used' warnings --- erts/emulator/beam/erl_db_util.c | 2 -- erts/emulator/beam/erl_process.c | 6 +++++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/erts/emulator/beam/erl_db_util.c b/erts/emulator/beam/erl_db_util.c index 1c3738d3b6..db33ba47f1 100644 --- a/erts/emulator/beam/erl_db_util.c +++ b/erts/emulator/beam/erl_db_util.c @@ -4168,7 +4168,6 @@ static DMCRet dmc_all_bindings(DMCContext *context, int *constant) { int i; - int heap_used = 0; DMC_PUSH(*text, matchPushC); DMC_PUSH(*text, NIL); @@ -4176,7 +4175,6 @@ static DMCRet dmc_all_bindings(DMCContext *context, if (heap->vars[i].is_bound) { dmc_add_pushv_variant(context, heap, text, i); DMC_PUSH(*text, matchConsB); - heap_used += 2; } } ++context->stack_used; diff --git a/erts/emulator/beam/erl_process.c b/erts/emulator/beam/erl_process.c index 97315b0608..5c8ea660f2 100644 --- a/erts/emulator/beam/erl_process.c +++ b/erts/emulator/beam/erl_process.c @@ -4654,7 +4654,8 @@ do { \ run_queue_info[(QIX)].full_reds_history_change = (LAST_REDS); \ } while (0) -#define ERTS_DBG_CHK_FULL_REDS_HISTORY(RQ) \ +#ifdef DEBUG +# define ERTS_DBG_CHK_FULL_REDS_HISTORY(RQ) \ do { \ int sum__ = 0; \ int rix__; \ @@ -4662,6 +4663,9 @@ do { \ sum__ += (RQ)->full_reds_history[rix__]; \ ASSERT(sum__ == (RQ)->full_reds_history_sum); \ } while (0); +#else +# define ERTS_DBG_CHK_FULL_REDS_HISTORY(RQ) +#endif #define ERTS_PRE_ALLOCED_MPATHS 8 -- 2.34.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor