Skip to content

warning about icu-small WHEN compile with gnu++23 #54067

@navegador5

Description

@navegador5

Version

Node.js v22.4.1.

Platform

Linux dev 5.15.0-117-generic #127-Ubuntu SMP Fri Jul 5 20:13:28 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Subsystem

No response

What steps will reproduce the bug?

I just change the std=gnu++xxxx IN cc_flags to std=gnu++23. others same as default
then:

$ ./configure
$ make -j12
------------
  ../deps/icu-small/source/common/unicode/char16ptr.h:222:53: warning: dangling pointer to an unnamed temporary may be used [-Wdangling-pointer=]
  222 | ConstChar16Ptr::ConstChar16Ptr(const char16_t *p) : p_(p) {}

How often does it reproduce? Is there a required condition?

always.

What is the expected behavior? Why is that the expected behavior?

no warning

What do you see instead?

../deps/icu-small/source/common/unicode/char16ptr.h:222:53: warning: dangling pointer to an unnamed temporary may be used [-Wdangling-pointer=]
  222 | ConstChar16Ptr::ConstChar16Ptr(const char16_t *p) : p_(p) {}

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildIssues and PRs related to build files or the CI.icuIssues and PRs related to the ICU dependency.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions