-
Notifications
You must be signed in to change notification settings - Fork 459
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failures in CI across platforms after nogc env update #1573
Comments
@KevinEady is that something you have some cycles to look at ? |
It looks like |
It's not as simple because of the The test fails with:
... and this is because Looking at the previous implementation: the Lines 4924 to 4932 in bf49519
Lines 4837 to 4838 in bf49519
Should I do something similar...? Seems odd to need to do this just to get rid of the warning... but I could imagine some projects using the same warnings-as-error configuration for this |
Ah, okay ... I had to use the Doing something similar to the old approach (ie. defining a no-op, non-basic Soooo not sure exactly how to address. |
Could be the following code a possible solution: ...
template <typename T>
#ifndef NODE_API_EXPERIMENTAL_HAS_POST_FINALIZER
inline void ObjectWrap<T>::FinalizeCallback(node_api_nogc_env env,
void* data,
void* /*hint*/) {
#else
inline void ObjectWrap<T>::FinalizeCallback(napi_env /*env*/,
void* data,
void* /*hint*/) {
#endif
... |
@NickNaso I was thinking about something similar to what you suggested except: inline void ObjectWrap<T>::FinalizeCallback(
#ifndef NODE_API_EXPERIMENTAL_HAS_POST_FINALIZER
node_api_nogc_env env,
#else
node_api_nogc_env /*env*/,
#endif
void* data,
void* /*hint*/) { EDIT: but looking at the two I think I prefer the one that @NickNaso suggested. |
But looking at it I don't think that will work because of the constexpr as the use of env is not just based on the define. |
There have been some failures since I landed the PR
https://ci.nodejs.org/job/node-test-node-addon-api-new/nodes=rhel8-x64/9278/console
https://ci.nodejs.org/job/node-test-node-addon-api-new/nodes=debian10-x64/9278/console
Looks like a warning about an unused parameter
The text was updated successfully, but these errors were encountered: