Browse Source

COMP: Fix warnings in system headers on VS6.

Brad King 19 years ago
parent
commit
21d7a242fd
1 changed files with 10 additions and 0 deletions
  1. 10 0
      Source/cmStandardIncludes.h

+ 10 - 0
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>