diff options
author | Brad King <brad.king@kitware.com> | 2006-08-29 10:27:50 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-08-29 10:27:50 -0400 |
commit | 21d7a242fd3bd1a36db6dd7f7e07135ef8271ea4 (patch) | |
tree | 3ef7186303bcc37ba11a20db1d9110709ed3409f /Source/cmStandardIncludes.h | |
parent | eef327b944a590373faa8df4eca7dbf0387c6f5c (diff) | |
download | cmake-21d7a242fd3bd1a36db6dd7f7e07135ef8271ea4.tar.gz |
COMP: Fix warnings in system headers on VS6.
Diffstat (limited to 'Source/cmStandardIncludes.h')
-rw-r--r-- | Source/cmStandardIncludes.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/cmStandardIncludes.h b/Source/cmStandardIncludes.h index c2703c155b..eb77a973f5 100644 --- a/Source/cmStandardIncludes.h +++ b/Source/cmStandardIncludes.h @@ -41,6 +41,7 @@ #ifdef _MSC_VER #pragma warning ( disable : 4786 ) #pragma warning ( disable : 4503 ) +#pragma warning ( disable : 4512 ) /* operator=() could not be generated */ #define CMAKE_NO_ANSI_FOR_SCOPE #endif @@ -81,6 +82,11 @@ public: # include <cmsys/IOStream.hxx> #endif +// Avoid warnings in system headers. +#if defined(_MSC_VER) +# pragma warning (push,1) +#endif + #ifndef CMAKE_NO_ANSI_STREAM_HEADERS # include <fstream> # include <iostream> @@ -110,6 +116,10 @@ public: #include <set> #include <deque> +#if defined(_MSC_VER) +# pragma warning(pop) +#endif + // include the "c" string header #include <string.h> #include <stdio.h> |