-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Conversation
refack
commented
Oct 2, 2014
- activated "treat warnings as errors"
/cc @orangemocha @indutny |
'VCLibrarianTool': { | ||
'AdditionalOptions': [ | ||
'/ignore:4221', # link time code generation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes sense.
P.S. this is the output on compiling the |
Refactored the whole thing. |
|
||
|
||
#Jetbrains project files (WebStorm / Clion) | ||
/.idea/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing newline.
Some nits, but mostly LGTM |
Dropped the whole |
rebased on #8476 |
Most developers build/test their changes on one platform. Since not everybody builds on Windows, treating warning as errors will cause a lot of build breaks! |
# 4267 - int64 passed as int, truncation might happen (depends on linkage) | ||
# 4530 - No exception semantics (leaking from MS STL xlocale) | ||
# 4996 - winsock ip4 calls deprecated | ||
'msvs_disabled_warnings': [4351, 4355, 4800, 4244, 4267, 4530, 4996], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With the exception of maybe C4351, I don't think it's a good idea to disable these warnings. And for warnings that cannot be fixed, like the ones about deprecation, it would be better to disable them in the source file using #pragma
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are here for deps
sake. Only 4244, 4267 are allowed in node
code.
That's like saying if a PR introduces a failing test on some platform that's Ok, as long as the build works. |
Conflicts: src/node.cc
And now that we have a warnings free build we can activate "treat warnings as errors". Note: the 'node' target still has two suppress warning types
@orangemocha ... do you see reason to keep this one open? |
Well, now we do have a CI that tests every commit. It would be nice to flush all warnings out and treat warnings as errors. This PR would have to be revisited though, and it would make more sense to do it in https://github.com/nodejs/node |