jhugman / uniffi-bindgen-react-native

A uniffi bindings generator for calling Rust from react-native
Other
0 stars 0 forks source link

Unused methods related to makeCallbackFunction #65

Closed zzorba closed 1 week ago

zzorba commented 4 weeks ago

When compiling the generated/cpp files, a warning is produced about the makeCallbackFunction being unused.

⚠️  (../../packages/rn-diode/cpp/generated/diode.cpp:1632:36)

  1630 | }
  1631 | 
> 1632 | static UniffiCallbackInterfaceFree makeCallbackFunction(
       |                                    ^ unused function 'makeCallbackFunction' [-Wunused-function]
  1633 |     jsi::Runtime &rt,
  1634 |     std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
  1635 |     const jsi::Value &value) {

Not hugely important of course, but would be nice to not add the an additional warning to the thousands already generated by React-Native.