aboutsummaryrefslogtreecommitdiffstats
path: root/erts
diff options
context:
space:
mode:
authorKjell Winblad <[email protected]>2019-03-21 13:10:05 +0100
committerKjell Winblad <[email protected]>2019-03-22 16:18:25 +0100
commit6f01f562418c26e37233c2f1ca1dc62c53418ca8 (patch)
treec437e4be5dfe17050c4e665e98e4479b0b4f08f1 /erts
parentf810d541b5722c153ac29b302bb509164421b5e8 (diff)
downloadotp-6f01f562418c26e37233c2f1ca1dc62c53418ca8.tar.gz
otp-6f01f562418c26e37233c2f1ca1dc62c53418ca8.tar.bz2
otp-6f01f562418c26e37233c2f1ca1dc62c53418ca8.zip
Suppress false positive warning in gcc 4.8.2
This commit suppresses the following warning in gcc 4.8.2: In file included from beam/bif.c:33:0: beam/bif.c: In function ‘iolist_size_1’: beam/bif.h:332:14: warning: ‘state_mref’ may be used uninitialized in this function [-Wmaybe-uninitialized] reg[0] = (A0); \ ^ beam/bif.c:2464:11: note: ‘state_mref’ was declared here Eterm state_mref;
Diffstat (limited to 'erts')
-rw-r--r--erts/emulator/beam/bif.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/erts/emulator/beam/bif.c b/erts/emulator/beam/bif.c
index c102ddbee6..919dc9c4f0 100644
--- a/erts/emulator/beam/bif.c
+++ b/erts/emulator/beam/bif.c
@@ -2463,6 +2463,7 @@ BIF_RETTYPE iolist_size_1(BIF_ALIST_1)
ErtsIOListSizeContext* context = NULL;
Eterm state_mref;
int is_trap_at_L_iter_list;
+ ERTS_UNDEF(state_mref, THE_NON_VALUE);
ESTACK_CHANGE_ALLOCATOR(s, ERTS_ALC_T_SAVED_ESTACK);
#ifdef DEBUG
iterations_until_trap = iterations_until_trap / 10;