Skip Menu |

This queue is for tickets about the indirect CPAN distribution.

Report information
The Basics
Id: 98146
Status: rejected
Priority: 0/
Queue: indirect

People
Owner: Nobody in particular
Requestors: dolmen [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.31
Fixed in: (no value)



Subject: gcc warnings
With perl 5.16.3 and gcc 4.8.2: cc -c -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"0.31\" -DXS_VERSION=\"0.31\" -fPIC "-I/home/omengue/.plenv/versions/5.16.3/lib/perl5/5.16.3/x86_64-linux/CORE" indirect.c In file included from /home/omengue/.plenv/versions/5.16.3/lib/perl5/5.16.3/x86_64-linux/CORE/perl.h:3445:0, from indirect.xs:6: indirect.xs: In function ‘indirect_ck_const’: /home/omengue/.plenv/versions/5.16.3/lib/perl5/5.16.3/x86_64-linux/CORE/hv.h:265:28: warning: null argument where non-null required (argument 2) [-Wnonnull] #define HvAUX(hv) ((struct xpvhv_aux*)&(HvARRAY(hv)[HvMAX(hv)+1])) ^ /home/omengue/.plenv/versions/5.16.3/lib/perl5/5.16.3/x86_64-linux/CORE/hv.h:399:24: note: in definition of macro ‘HEK_KEY’ #define HEK_KEY(hek) (hek)->hek_key ^ /home/omengue/.plenv/versions/5.16.3/lib/perl5/5.16.3/x86_64-linux/CORE/hv.h:287:5: note: in expansion of macro ‘HvAUX’ : HvAUX(hv)->xhv_name_u.xhvnameu_name \ ^ /home/omengue/.plenv/versions/5.16.3/lib/perl5/5.16.3/x86_64-linux/CORE/hv.h:294:15: note: in expansion of macro ‘HvNAME_HEK_NN’ ? HEK_KEY(HvNAME_HEK_NN(hv)) : NULL) ^ indirect.xs:587:30: note: in expansion of macro ‘HvNAME_get’ && memcmp(SvPVX(sv), HvNAME_get(PL_curstash), len) == 0) { ^ (the full report is available from CPAN Testers, but I can't see it yet on www.cpantesters.org) -- Olivier Mengué - http://perlresume.org/DOLMEN
Le Lun 18 Aoû 2014 12:40:05, DOLMEN a écrit : Show quoted text
> With perl 5.16.3 and gcc 4.8.2: > > > cc -c -fno-strict-aliasing -pipe -fstack-protector > -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 > -DVERSION=\"0.31\" -DXS_VERSION=\"0.31\" -fPIC "- > I/home/omengue/.plenv/versions/5.16.3/lib/perl5/5.16.3/x86_64- > linux/CORE" indirect.c > In file included from > /home/omengue/.plenv/versions/5.16.3/lib/perl5/5.16.3/x86_64- > linux/CORE/perl.h:3445:0, > from indirect.xs:6: > indirect.xs: In function ‘indirect_ck_const’: > /home/omengue/.plenv/versions/5.16.3/lib/perl5/5.16.3/x86_64- > linux/CORE/hv.h:265:28: warning: null argument where non-null required > (argument 2) [-Wnonnull] > #define HvAUX(hv) ((struct xpvhv_aux*)&(HvARRAY(hv)[HvMAX(hv)+1])) > ^ > /home/omengue/.plenv/versions/5.16.3/lib/perl5/5.16.3/x86_64- > linux/CORE/hv.h:399:24: note: in definition of macro ‘HEK_KEY’ > #define HEK_KEY(hek) (hek)->hek_key > ^ > /home/omengue/.plenv/versions/5.16.3/lib/perl5/5.16.3/x86_64- > linux/CORE/hv.h:287:5: note: in expansion of macro ‘HvAUX’ > : HvAUX(hv)->xhv_name_u.xhvnameu_name \ > ^ > /home/omengue/.plenv/versions/5.16.3/lib/perl5/5.16.3/x86_64- > linux/CORE/hv.h:294:15: note: in expansion of macro ‘HvNAME_HEK_NN’ > ? HEK_KEY(HvNAME_HEK_NN(hv)) : NULL) > ^ > indirect.xs:587:30: note: in expansion of macro ‘HvNAME_get’ > && memcmp(SvPVX(sv), HvNAME_get(PL_curstash), len) == 0) { > ^ > > > (the full report is available from CPAN Testers, but I can't see it > yet on www.cpantesters.org)
Thanks for your report. As far as I can tell, PL_curstash always has a name, so that warning is harmless. It is safe to ignore it. Vincent