diff options
| author | Richard Kistruck | 2008-09-10 18:50:13 +0100 |
|---|---|---|
| committer | Richard Kistruck | 2008-09-10 18:50:13 +0100 |
| commit | 08360b91f36a793c5ffd60726cbbbb8ad082ae0c (patch) | |
| tree | c5c6c10e4fd545aeb59711f6323f34f8821fb8e7 /mps/code | |
| parent | 994518b5e2cb468ac7743f15b578ca544013f82b (diff) | |
| download | emacs-08360b91f36a793c5ffd60726cbbbb8ad082ae0c.tar.gz emacs-08360b91f36a793c5ffd60726cbbbb8ad082ae0c.zip | |
Mps br/vc9: undo #pragma warning (4996) in mpslib.h and mpswin.h; testlib.c is where it is needed
Copied from Perforce
Change: 166143
ServerID: perforce.ravenbrook.com
Diffstat (limited to 'mps/code')
| -rw-r--r-- | mps/code/mpslib.h | 1 | ||||
| -rw-r--r-- | mps/code/mpswin.h | 3 | ||||
| -rw-r--r-- | mps/code/testlib.c | 3 |
3 files changed, 4 insertions, 3 deletions
diff --git a/mps/code/mpslib.h b/mps/code/mpslib.h index ebdf2b27e3c..094975b3cf7 100644 --- a/mps/code/mpslib.h +++ b/mps/code/mpslib.h | |||
| @@ -15,7 +15,6 @@ | |||
| 15 | 15 | ||
| 16 | #include <stddef.h> | 16 | #include <stddef.h> |
| 17 | 17 | ||
| 18 | #pragma warning( disable : 4996 ) | ||
| 19 | 18 | ||
| 20 | extern int mps_lib_get_EOF(void); | 19 | extern int mps_lib_get_EOF(void); |
| 21 | #define mps_lib_EOF (mps_lib_get_EOF()) | 20 | #define mps_lib_EOF (mps_lib_get_EOF()) |
diff --git a/mps/code/mpswin.h b/mps/code/mpswin.h index 3adb639e49b..99317fb790a 100644 --- a/mps/code/mpswin.h +++ b/mps/code/mpswin.h | |||
| @@ -13,8 +13,7 @@ | |||
| 13 | 13 | ||
| 14 | /* Suppress Visual C warnings from windows.h at warning level 4. */ | 14 | /* Suppress Visual C warnings from windows.h at warning level 4. */ |
| 15 | #ifdef MPS_BUILD_MV | 15 | #ifdef MPS_BUILD_MV |
| 16 | #pragma warning(disable: 4115 4201 4209 4214 4996) | 16 | #pragma warning(disable: 4115 4201 4209 4214) |
| 17 | /* 4996 = insecure C runtime, added in a rush for VC9 (2008) RHSK */ | ||
| 18 | #endif | 17 | #endif |
| 19 | 18 | ||
| 20 | #include <windows.h> | 19 | #include <windows.h> |
diff --git a/mps/code/testlib.c b/mps/code/testlib.c index 8cf36491cd3..5a1941ab30c 100644 --- a/mps/code/testlib.c +++ b/mps/code/testlib.c | |||
| @@ -70,6 +70,9 @@ mps_addr_t rnd_addr(void) | |||
| 70 | 70 | ||
| 71 | /* randomize -- randomize the generator, or initialize to replay */ | 71 | /* randomize -- randomize the generator, or initialize to replay */ |
| 72 | 72 | ||
| 73 | /* for sscanf */ | ||
| 74 | #pragma warning( disable : 4996 ) | ||
| 75 | |||
| 73 | void randomize(int argc, char **argv) | 76 | void randomize(int argc, char **argv) |
| 74 | { | 77 | { |
| 75 | int i, k, n; | 78 | int i, k, n; |