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: resolve miscellaneous conversion warnings (Windows) #10145

Closed
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
src: dummy case in node::RevertMessage for Windows
Resolve warning on Windows build
Christopher J. Brody committed Dec 6, 2016
commit dd630c1b36124e4010d609544f6bdeffb56ba947
5 changes: 5 additions & 0 deletions src/node_revert.cc
Original file line number Diff line number Diff line change
@@ -10,6 +10,11 @@ const char* RevertMessage(const unsigned int cve) {
#define V(code, label, msg) case REVERT_ ## code: return label ": " msg;
switch (cve) {
REVERSIONS(V)
#ifdef _WIN32
// Resolve warning on Windows build:
case 0xDEADBEEF:
return "deadbeef";
#endif
default:
return "Unknown";
}