aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/export.c
diff options
context:
space:
mode:
authorPatrik Nyblom <[email protected]>2012-11-23 11:29:17 +0100
committerPatrik Nyblom <[email protected]>2013-01-23 17:39:34 +0100
commit90b44f551fd3d988b34a9fb7d32598b789a0c546 (patch)
treeda10a18491fc0305d7af776b7fefbee4bc2ca40a /erts/emulator/beam/export.c
parentd43f1a32489e7d22c73f6d6e7a6df59436ad3e17 (diff)
downloadotp-90b44f551fd3d988b34a9fb7d32598b789a0c546.tar.gz
otp-90b44f551fd3d988b34a9fb7d32598b789a0c546.tar.bz2
otp-90b44f551fd3d988b34a9fb7d32598b789a0c546.zip
Fix compiler warnings from GCC 4.7.1 on ARCH Linux
Diffstat (limited to 'erts/emulator/beam/export.c')
-rw-r--r--erts/emulator/beam/export.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/erts/emulator/beam/export.c b/erts/emulator/beam/export.c
index 6b5121f917..5a9baf5572 100644
--- a/erts/emulator/beam/export.c
+++ b/erts/emulator/beam/export.c
@@ -383,7 +383,9 @@ void export_start_staging(void)
IndexTable* dst = &export_tables[dst_ix];
IndexTable* src = &export_tables[src_ix];
struct export_entry* src_entry;
+#ifdef DEBUG
struct export_entry* dst_entry;
+#endif
int i;
ASSERT(dst_ix != src_ix);
@@ -396,7 +398,10 @@ void export_start_staging(void)
for (i = 0; i < src->entries; i++) {
src_entry = (struct export_entry*) erts_index_lookup(src, i);
src_entry->ep->addressv[dst_ix] = src_entry->ep->addressv[src_ix];
- dst_entry = (struct export_entry*) index_put_entry(dst, src_entry);
+#ifdef DEBUG
+ dst_entry = (struct export_entry*)
+#endif
+ index_put_entry(dst, src_entry);
ASSERT(entry_to_blob(src_entry) == entry_to_blob(dst_entry));
}
export_staging_unlock();