1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-26 00:34:17 -07:00

Mps br/vc9: under ifdef mps_builder_mv, disable warning 4996 where

necessary for VC9 builds.

Copied from Perforce
 Change: 166497
 ServerID: perforce.ravenbrook.com
This commit is contained in:
Richard Kistruck 2008-10-20 15:12:15 +01:00
parent 4f48c88d01
commit 24c8c1a882
4 changed files with 26 additions and 11 deletions

View file

@ -24,6 +24,13 @@
#include "ossu.h"
#endif
#ifdef MPS_BUILD_MV
/* MSVC warning 4996 = stdio / C runtime 'unsafe' */
/* Objects to: strncpy, sscanf, fopen. See job001934. */
#pragma warning( disable : 4996 )
#endif
typedef unsigned int uint;
typedef unsigned long ulong;

View file

@ -35,7 +35,11 @@ extern int _flsbuf(unsigned char c, FILE *stream);
static FILE *ioFile = NULL;
#ifdef MPS_BUILD_MV
/* MSVC warning 4996 = stdio / C runtime 'unsafe' */
/* Objects to: fopen. See job001934. */
#pragma warning( disable : 4996 )
#endif
mps_res_t mps_io_create(mps_io_t *mps_io_r)
{

View file

@ -118,7 +118,11 @@ mps_clock_t mps_clocks_per_sec(void)
}
#ifdef MPS_BUILD_MV
/* MSVC warning 4996 = stdio / C runtime 'unsafe' */
/* Objects to: getenv. See job001934. */
#pragma warning( disable : 4996 )
#endif
unsigned long mps_lib_telemetry_control(void)
{

View file

@ -18,14 +18,17 @@ struct itimerspec; /* stop complaints from time.h */
#endif
#include <time.h>
#ifdef MPS_OS_W3
#ifdef _MSC_VER
#pragma warning(disable: 4702) /* unreachable code */
/* job000605: believed needed to prevent VC7 warning
* for error() below, in which va_end is mandated by
* ISO C (C99:7.15.1) even though it is unreachable.
*/
#endif
#ifdef MPS_BUILD_MV
/* MSVC warning 4702 = unreachable code
*
* job000605: believed needed to prevent VC7 warning
* for error() below, in which va_end is mandated by
* ISO C (C99:7.15.1) even though it is unreachable.
*/
#pragma warning(disable: 4702)
/* MSVC warning 4996 = stdio / C runtime 'unsafe' */
/* Objects to: sscanf. See job001934. */
#pragma warning( disable : 4996 )
#endif
@ -70,9 +73,6 @@ mps_addr_t rnd_addr(void)
/* randomize -- randomize the generator, or initialize to replay */
/* for sscanf */
#pragma warning( disable : 4996 )
void randomize(int argc, char **argv)
{
int i, k, n;