src: use CHECK(false) in switch default case#26502
src: use CHECK(false) in switch default case#26502nitsakh wants to merge 6 commits intonodejs:masterfrom
Conversation
|
Thanks! I just updated the branch as per @bnoordhuis 's suggestion. Please let me know if this approach works. |
|
Maybe the build is failing on gcc4.9 due to https://github.com/nodejs/node/blob/master/src/node_file.h#L151-L156 ? 🤔 |
|
|
|
@bnoordhuis, it'll be great if you can please take a quick look at the changes. |
|
Please let me know if there's something blocking here. Happy to make needed changes. :-) |
1 similar comment
|
Sorry this took so long! Landed in 00ba75e 🎉 |
PR-URL: #26502 Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
PR-URL: #26502 Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
Passing a !string to
CHECKwill trigger a string conversion warning and it's also inconsistent with the usage in other places. Hence, this changes it toCHECK(false)making it consistent.Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes