Snippets for erlang 28.5.0.5 from Alpine aarch64
Sourced from https://build.alpinelinux.org/buildlogs/build-edge-aarch64/community/erlang28/erlang28-28.5.0.5-r0.log.
-
beam/erl_debugger.c:576:50: warning: array subscript [0, 0] is outside array bounds of 'const void ** const[1]' [-Warray-bounds=] 576 | const void *next_fun_start = lt->func_tab[fun_idx+1][0]; | ~~~~~~~~~~~~^~~~~~~~~~~ -
beam/erl_global_literals.c:113:24: warning: array subscript 65536 is above array bounds of 'Eterm[1]' {aka 'long unsigned int[1]'} [-Warray-bounds=] 113 | chunk->chunk_end = &(chunk->area.start[heap_size]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
beam/erl_bif_coverage.c:239:36: warning: array subscript [-9223372036854775807, 0] is outside array bounds of 'const void ** const[1]' [-Warray-bounds=] 239 | int high = lt->func_tab[i+1] - lt->func_tab[0]; | ~~~~~~~~~~~~^~~~~ -
drivers/common/inet_drv.c:3875:15: warning: unused variable 'spec_size' [-Wunused-variable] 3875 | const int spec_size = PACKET_ERL_DRV_TERM_DATA_LEN; | ^~~~~~~~~ -
drivers/common/inet_drv.c:4111:15: warning: unused variable 'spec_size' [-Wunused-variable] 4111 | const int spec_size = PACKET_ERL_DRV_TERM_DATA_LEN; | ^~~~~~~~~ -
beam/erl_term.h:237:21: warning: array subscript 1 is above array bounds of 'Eterm[1]' {aka 'long unsigned int[1]'} [-Warray-bounds=] 237 | #define CDR(x) ((x)[1]) | ~~~~^~~~ -
beam/erl_term_hashing.c:1403:55: warning: array subscript 1 is above array bounds of 'Uint32[1]' {aka 'unsigned int[1]'} [-Warray-bounds=] 1403 | UINT32_HASH(external_ref_numbers(term)[0], HCONST_7); | ^ -
beam/erl_term_hashing.c:288:51: warning: array subscript 1 is above array bounds of 'Uint32[1]' {aka 'unsigned int[1]'} [-Warray-bounds=] 288 | UINT32_HASH_RET(external_ref_numbers(term)[0],FUNNY_NUMBER9,FUNNY_NUMBER10); | ^ -
beam/erl_db_util.c:3342:20: warning: array subscript 1 is above array bounds of 'Eterm[1]' {aka 'long unsigned int[1]'} [-Warray-bounds=] 3342 | return obj->tpl[arityval(*obj->tpl) + 1]; | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ -
beam/jit/arm/instr_select.cpp:49:28: warning: ignoring attributes on template argument 'UWord' {aka 'long unsigned int'} [-Wignored-attributes] 49 | static std::pair<UWord, int> plan_untag(const Span<const ArgVal> &args) { | ^ -
beam/erl_db_util.c:3663:34: warning: array subscript 1 is above array bounds of 'Eterm[1]' {aka 'long unsigned int[1]'} [-Warray-bounds=] 3663 | if (is_immed(src->tpl[i])) { -
beam/erl_db_util.c:3673:37: warning: array subscript 1 is above array bounds of 'Eterm[1]' {aka 'long unsigned int[1]'} [-Warray-bounds=] 3673 | newDbTerm->tpl[i] = copy_ets_element(src->tpl[i], sz, &top, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3674 | &tmp_offheap); | ~~~~~~~~~~~~~ -
beam/erl_db_util.c:3673:31: warning: array subscript 1 is above array bounds of 'Eterm[1]' {aka 'long unsigned int[1]'} [-Warray-bounds=] 3673 | newDbTerm->tpl[i] = copy_ets_element(src->tpl[i], sz, &top, | ~~~~~~~~~~~~~~^~~ -
beam/erl_db_util.c:3664:31: warning: array subscript 1 is above array bounds of 'Eterm[1]' {aka 'long unsigned int[1]'} [-Warray-bounds=] 3664 | newDbTerm->tpl[i] = src->tpl[i]; | ~~~~~~~~~~~~~~^~~ -
beam/erl_db_util.c:3703:33: warning: array subscript 1 is above array bounds of 'Eterm[1]' {aka 'long unsigned int[1]'} [-Warray-bounds=] 3703 | if (is_immed(bp->tpl[i])) { -
beam/bif.c:4822:25: warning: array subscript 1 is above array bounds of 'Uint32[1]' {aka 'unsigned int[1]'} [-Warray-bounds=] 4822 | etp->data.ui32[i] = refn[j]; | ~~~~~~~~~~~~~~^~~ -
beam/erl_proc_sig_queue.c:1904:34: warning: array subscript 1 is above array bounds of 'Eterm[1]' {aka 'long unsigned int[1]'} [-Warray-bounds=] 1904 | ? sig->hfrag.mem[ix++] | ~~~~~~~~~~~~~~^~~~~~