summaryrefslogtreecommitdiff
path: root/regen
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2023-02-18 04:21:23 +0100
committerYves Orton <demerphq@gmail.com>2023-02-19 09:42:04 +0800
commitce94d21a89435e6f2c921e8908972f61a3e115bc (patch)
treeb9218ef1e8f46cb7563eb7c8708a5504ca6e14dd /regen
parent4f5c82918ef2c46b8533c835c64762596d672fee (diff)
downloadperl-ce94d21a89435e6f2c921e8908972f61a3e115bc.tar.gz
Devel-PPPort - silence maybe-uninitialized warnings on gcc-12
GCC-12 seems to have a propensity to warning about maybe-uninitialized variables a lot more than it should. Most of the cases I have looked into it turns out to be a false positive, but at the same time, it is pretty simple to fix this kind of thing, so just fix it so the darn thing will shut up. This one just initializes some variables to NULL at the start of a test function. Fixes the following (slightly elided) warning. gcc-12 -c ... -Og -g ... -W -Wall RealPPPort.c In file included from ../../perl.h:6197, from RealPPPort.xs:31: ../../embed.h: In function ‘XS_Devel__PPPort_OpSIBLING_tests’: ../../embed.h:461:49: warning: ‘lastkid’ may be used uninitialized [-Wmaybe-uninitialized] 461 | # define op_free(a) Perl_op_free(aTHX_ a) ^~~~~~~~~~~~ RealPPPort.xs:1741:21: note: ‘lastkid’ was declared here 1741 | OP *lastkid; | ^~~~~~~ Fixes Github Issue #20816
Diffstat (limited to 'regen')
0 files changed, 0 insertions, 0 deletions