[prev in list] [next in list] [prev in thread] [next in thread] 

List:       perl5-changes
Subject:    [Perl/perl5] 832a37: Revert "av_create_and_push/unshift_one: faster cre...
From:       Karl Williamson via perl5-changes <perl5-changes () perl ! org>
Date:       2021-07-31 23:38:57
Message-ID: Perl/perl5/push/refs/heads/blead/27901a-832a37 () github ! com
[Download RAW message or body]

  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 832a378e4a2913b8e6028ffcb87ffa08bbad0d98
      https://github.com/Perl/perl5/commit/832a378e4a2913b8e6028ffcb87ffa08bbad0d98
  Author: Karl Williamson <khw@cpan.org>
  Date:   2021-07-31 (Sat, 31 Jul 2021)

  Changed paths:
    M av.c

  Log Message:
  -----------
  Revert "av_create_and_push/unshift_one: faster create via newAV_alloc_xz"

This reverts commit 71ca71bc8b733c80f8f8099bb4673ee629da1353.

It does not compile with C++:

g++ -c -DPERL_CORE -D_REENTRANT -D_GNU_SOURCE -Wno-deprecated -fwrapv -DDEBUGGING \
-fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include \
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -ansi -O0 -ggdb3 -Wall \
                -Werror=pointer-arith -Werror=vla -Wextra -Wwrite-strings av.c
av.c: In function ‘SV** Perl_av_create_and_unshift_one(PerlInterpreter*, AV**, \
SV*)': av.c:735:16: error: cannot convert ‘SV* const' {aka ‘sv* const'} to \
‘SV**' {aka ‘sv**'} in return  735 |         return val;
      |                ^~~


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic