diff options
author | Brad King <brad.king@kitware.com> | 2004-12-01 12:24:33 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2004-12-01 12:24:33 (GMT) |
commit | ca2f4aa03979a0814201239962df910890b7ca37 (patch) | |
tree | 40ed1dd5f4891c2e1fd26aa1190e24e1b7a9df9e | |
parent | 0689b4ed5f7a8807fea2eb0cd1d02d7d7ff1d176 (diff) | |
download | CMake-ca2f4aa03979a0814201239962df910890b7ca37.zip CMake-ca2f4aa03979a0814201239962df910890b7ca37.tar.gz CMake-ca2f4aa03979a0814201239962df910890b7ca37.tar.bz2 |
COMP: Disabling old streams warnings when including old headers on MSVC.
-rw-r--r-- | Source/kwsys/kwsys_ios_fstream.h.in | 7 | ||||
-rw-r--r-- | Source/kwsys/kwsys_ios_iostream.h.in | 7 |
2 files changed, 8 insertions, 6 deletions
diff --git a/Source/kwsys/kwsys_ios_fstream.h.in b/Source/kwsys/kwsys_ios_fstream.h.in index 6d2690c..c787bca 100644 --- a/Source/kwsys/kwsys_ios_fstream.h.in +++ b/Source/kwsys/kwsys_ios_fstream.h.in @@ -17,8 +17,9 @@ #include <@KWSYS_NAMESPACE@/Configure.hxx> #ifdef _MSC_VER -#pragma warning (push, 1) -#pragma warning (disable: 4702) +# pragma warning (push, 1) +# pragma warning (disable: 4702) +# pragma warning (disable: 4995) /* Old streams are deprecated. */ #endif #if @KWSYS_NAMESPACE@_IOS_USE_ANSI @@ -41,7 +42,7 @@ namespace @KWSYS_NAMESPACE@_ios #endif #ifdef _MSC_VER -#pragma warning(pop) +# pragma warning(pop) #endif #endif diff --git a/Source/kwsys/kwsys_ios_iostream.h.in b/Source/kwsys/kwsys_ios_iostream.h.in index f44891c..c00596f 100644 --- a/Source/kwsys/kwsys_ios_iostream.h.in +++ b/Source/kwsys/kwsys_ios_iostream.h.in @@ -17,8 +17,9 @@ #include <@KWSYS_NAMESPACE@/Configure.hxx> #ifdef _MSC_VER -#pragma warning (push, 1) -#pragma warning (disable: 4702) +# pragma warning (push, 1) +# pragma warning (disable: 4702) +# pragma warning (disable: 4995) /* Old streams are deprecated. */ #endif #if @KWSYS_NAMESPACE@_IOS_USE_ANSI @@ -42,7 +43,7 @@ namespace @KWSYS_NAMESPACE@_ios #endif #ifdef _MSC_VER -#pragma warning(pop) +# pragma warning(pop) #endif #endif |