Skip to content
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

src: fix compiler warning in async_wrap.cc #33322

Closed
wants to merge 1 commit into from

Conversation

addaleax
Copy link
Member

@addaleax addaleax commented May 9, 2020

../src/async_wrap.cc: In function ‘uint16_t node::ToAsyncHooksType(v8::PromiseHookType)’:
../src/async_wrap.cc:313:1: error: control reaches end of non-void function [-Werror=return-type]
 }

Refs: #32891

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

    ../src/async_wrap.cc: In function ‘uint16_t node::ToAsyncHooksType(v8::PromiseHookType)’:
    ../src/async_wrap.cc:313:1: error: control reaches end of non-void function [-Werror=return-type]
     }

Refs: nodejs#32891
@nodejs-github-bot nodejs-github-bot added the c++ Issues and PRs that require attention from people who are familiar with C++. label May 9, 2020
@nodejs-github-bot
Copy link
Collaborator

@addaleax
Copy link
Member Author

addaleax commented May 9, 2020

👍 to fast-track?

@addaleax addaleax added the fast-track PRs that do not need to wait for 48 hours to land. label May 9, 2020
addaleax added a commit that referenced this pull request May 9, 2020
    ../src/async_wrap.cc: In function ‘uint16_t node::ToAsyncHooksType(v8::PromiseHookType)’:
    ../src/async_wrap.cc:313:1: error: control reaches end of non-void function [-Werror=return-type]
     }

Refs: #32891

PR-URL: #33322
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
@addaleax
Copy link
Member Author

addaleax commented May 9, 2020

Landed in ae34e47, thanks for the reviews!

@addaleax addaleax closed this May 9, 2020
@addaleax addaleax deleted the async-wrap-warning branch May 9, 2020 17:09
@codebytere
Copy link
Member

@addaleax should this be backported to v14.x? There's a conflict it seems - i can add the label if yes!

@addaleax
Copy link
Member Author

@codebytere It’s not important to be backported, but I’m surprised that it doesn’t apply after #32891… I can try to take a look later

@codebytere
Copy link
Member

@addaleax ah it looks like the linked pr has dont-land-on-v14.x so i didn't catch it in my branch-diff

@addaleax
Copy link
Member Author

@codebytere Only in the past – if running branch-diff now doesn’t catch it, then branch-diff is probably broken… the linked PR should land on v14.x, in any case.

@codebytere
Copy link
Member

Figured out the issue 😅applied now!

codebytere pushed a commit that referenced this pull request May 11, 2020
    ../src/async_wrap.cc: In function ‘uint16_t node::ToAsyncHooksType(v8::PromiseHookType)’:
    ../src/async_wrap.cc:313:1: error: control reaches end of non-void function [-Werror=return-type]
     }

Refs: #32891

PR-URL: #33322
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
@codebytere codebytere mentioned this pull request May 18, 2020
@codebytere
Copy link
Member

Marking don't land as it affects code introduced in #32891.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ Issues and PRs that require attention from people who are familiar with C++. fast-track PRs that do not need to wait for 48 hours to land.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants