Re: [INTERNALS-WIN] Re: add deprecated support for VC

From: Date: Fri, 27 Jun 2008 17:20:28 +0000
Subject: Re: [INTERNALS-WIN] Re: add deprecated support for VC
References: 1 2  Groups: php.internals.win 
Request: Send a blank email to internals-win+get-36@lists.php.net to get a copy of this message
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

« previous php.internals.win (#36) next »