Re: [INTERNALS-WIN] Re: add deprecated support for VC
[email protected] (Elizabeth M Smith)
| Newsgroups | php.internals.win |
|---|---|
| Message-ID | <[email protected]> |
Stanislav Malyshev wrote: > Hi! > >> Please find a patch to add the deprecated attribute to windows (VC2003 >> or later only). If you like to see the warnings (and tons of other), >> remove the "/wd4996" option in the generated Makefile on line 46. > > Ah, that's why when I tried MSVC __declspec it didn't produce the > warnings! OK, I'll add Windows one too. > >> I wonder if we should not "fix" our code base to remove the deprecated >> warnings for the CRT (_open, etc.). It may help us to use a more noisy >> mode to catch possible issues or improvements. > > Isn't there some define that can kill those warnings? MS keeps changing it's mind _CRT_SECURE_NO_WARNINGS will kill the "use the secure version" warnings in 2008 _CRT_NONSTDC_NO_WARNINGS kills the _open i not standard C type warnings in 2005 these calls are _CRT_NONSTDC_NO_DEPRECATE just to really annoy you... Elizabeth