This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
av.c: silence compiler warning
authorYves Orton <demerphq@gmail.com>
Thu, 1 Jun 2017 14:28:21 +0000 (16:28 +0200)
committerYves Orton <demerphq@gmail.com>
Thu, 1 Jun 2017 15:17:34 +0000 (17:17 +0200)
commit84610c522ba9c4c14999a7c317050818363d5b7c
tree3a32bd01b8d2aa1bf22978d3cb81776440a3e7ba
parentb02f36453d1392e2b0bd62fdde2b286fb60bd5bc
av.c: silence compiler warning

av.c: In function ‘Perl_av_undef’:
av.c:577:35: warning: ‘orig_ix’ may be used uninitialized in this function [-Wmaybe-uninitialized]
             PL_tmps_stack[orig_ix] = &PL_sv_undef;

The warning is bogus, as we only use the orig_ix if real is true,
and if real is true we will have set orig_ix. But it doesnt cost
much to initialize it always and shut up the compiler.
av.c