Skip to content

malloc.c gives compiler warnings under multiplicity #20286

@Jamaika1

Description

@Jamaika1

I use gcc 11.3.0. with function -DPERL_CORE -DPERL_IS_MINIPERL -DUSE_ITHREADS
932a38d
Are these messages correct?

locale.c: In function 'S_my_langinfo_i':
locale.c:4144:14: warning: '___lc_codepage_func' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
 4144 |         UINT ___lc_codepage_func(void);
      |              ^~~~~~~~~~~~~~~~~~~
malloc.c:242: warning: "croak" redefined
  242 | #    define croak       Perl_croak_nocontext
      |
In file included from perl.h:6217,
                 from malloc.c:240:
embed.h:114: note: this is the location of the previous definition
  114 | #define croak(...)              Perl_croak(aTHX_ __VA_ARGS__)
      |
malloc.c:244: warning: "warn" redefined
  244 | #    define warn        Perl_warn_nocontext
      |
In file included from perl.h:6217,
                 from malloc.c:240:
embed.h:743: note: this is the location of the previous definition
  743 | #define warn(...)               Perl_warn(aTHX_ __VA_ARGS__)
      |

#20289

Metadata

Metadata

Assignees

No one assigned

    Labels

    build-time-warningsReplaces [META] Build-time warnings RT #133556

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions