maierfelix / webgpu

WebGPU for Node [Deprecated, Unmaintained]
MIT License
244 stars 17 forks source link

String lifetime bugs #36

Open sparist opened 2 years ago

sparist commented 2 years ago

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.