Skip to content

String lifetime bugs #36

@sparist

Description

@sparist

There are several compilation warnings of the following variety:

../src/GPUCommandEncoder.cpp:180:28: warning: object backing the pointer will be destroyed at the end of the full-expression [-Wdangling-gsl]
  const char* groupLabel = info[0].As<Napi::String>().Utf8Value().c_str();
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I will be sending a pull request shortly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions