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
MSVC 2019 emits 1000s of deprecation warnings #59730
Comments
These are the defines //base:base has from Chromium:
Still not sure how these are silenced from Chromium. |
Ah looks like through the warning flags? I believe /wd4996 should do the trick?
|
This is a subset of #59199. I was going to revisit this once Dart's instances are fixed (which is in progress already) to see if any are left after that. We should fix them, rather than suppress them, since it should be very few at that point. |
I see warnings about strdup vs. _strdup, and as far as I can tell Chromium still use "strdup", so they must either be using a conventionalized macro, or suppressing the warning? |
I'm happy to close this though. Thanks for the response! |
From Dart, yes.
I don't know if Chromium is suppressing the warning, but my Dart CL to suppress that deprecation warning was declined in favor of switching Windows to _strdup (via a wrapper), which there is a PR for (in fact, two, accidentally, because both I and someone on the Dart side ended up working on it at the same time without realizing it.) |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
According to stack overflow,
-D_CRT_NONSTDC_NO_DEPRECATE is the easy solution.
https://stackoverflow.com/questions/7582394/strdup-or-strdup
Objection @stuartmorgan @clarkezone?
The text was updated successfully, but these errors were encountered: