diff options
author | Björn-Egil Dahlberg <[email protected]> | 2011-11-07 17:24:08 +0100 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2011-11-07 17:24:08 +0100 |
commit | 766a0a84f0b9e4b9341fb06364bf5430574588a6 (patch) | |
tree | 4e0b881a5806f6a75661b20d56a77e780bf24cd6 /erts/emulator/beam/erl_db_util.c | |
parent | dd2f23d718f079afb12b8d0b9d288428fb0ad49d (diff) | |
parent | 4e73d4bee3fd7744ebaf9f672a0ab5bc6528301f (diff) | |
download | otp-766a0a84f0b9e4b9341fb06364bf5430574588a6.tar.gz otp-766a0a84f0b9e4b9341fb06364bf5430574588a6.tar.bz2 otp-766a0a84f0b9e4b9341fb06364bf5430574588a6.zip |
Merge branch 'egil/fix-compiler-warnings'
* egil/fix-compiler-warnings:
erts: Remove unused variable in enif_make_binary
erts: Remove debug variable in list_to_binary
erts: Remove cp on exiting and trapping processes
erts: Remove debug variables in erl_db
erts: Remove dead code in efile_drv
erts: Remove lock_check debug variables
erts: Remove unused variable in ttsl_drv
erts: "initialized" is only used with CHLDWTHR
erts: remove debug variables in beam_bp
Diffstat (limited to 'erts/emulator/beam/erl_db_util.c')
-rw-r--r-- | erts/emulator/beam/erl_db_util.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/erts/emulator/beam/erl_db_util.c b/erts/emulator/beam/erl_db_util.c index 7dfbb2ed02..42079a7cee 100644 --- a/erts/emulator/beam/erl_db_util.c +++ b/erts/emulator/beam/erl_db_util.c @@ -2846,7 +2846,9 @@ void* db_store_term_comp(DbTableCommon *tb, DbTerm* old, Uint offset, Eterm obj) Uint new_sz = offset + db_size_dbterm_comp(tb, obj); byte* basep; DbTerm* newp; +#ifdef DEBUG byte* top; +#endif ASSERT(tb->compress); if (old != 0) { @@ -2868,7 +2870,10 @@ void* db_store_term_comp(DbTableCommon *tb, DbTerm* old, Uint offset, Eterm obj) } newp->size = size_object(obj); - top = copy_to_comp(tb, obj, newp, new_sz); +#ifdef DEBUG + top = +#endif + copy_to_comp(tb, obj, newp, new_sz); ASSERT(top <= basep + new_sz); /* ToDo: Maybe realloc if ((basep+new_sz) - top) > WASTED_SPACE_LIMIT */ |