COMP: Fix warnings in system headers on VS6.

This commit is contained in:
Brad King 2006-08-29 10:27:50 -04:00
parent eef327b944
commit 21d7a242fd
1 changed files with 10 additions and 0 deletions

View File

@ -41,6 +41,7 @@
#ifdef _MSC_VER #ifdef _MSC_VER
#pragma warning ( disable : 4786 ) #pragma warning ( disable : 4786 )
#pragma warning ( disable : 4503 ) #pragma warning ( disable : 4503 )
#pragma warning ( disable : 4512 ) /* operator=() could not be generated */
#define CMAKE_NO_ANSI_FOR_SCOPE #define CMAKE_NO_ANSI_FOR_SCOPE
#endif #endif
@ -81,6 +82,11 @@ public:
# include <cmsys/IOStream.hxx> # include <cmsys/IOStream.hxx>
#endif #endif
// Avoid warnings in system headers.
#if defined(_MSC_VER)
# pragma warning (push,1)
#endif
#ifndef CMAKE_NO_ANSI_STREAM_HEADERS #ifndef CMAKE_NO_ANSI_STREAM_HEADERS
# include <fstream> # include <fstream>
# include <iostream> # include <iostream>
@ -110,6 +116,10 @@ public:
#include <set> #include <set>
#include <deque> #include <deque>
#if defined(_MSC_VER)
# pragma warning(pop)
#endif
// include the "c" string header // include the "c" string header
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>