Boost logo

Boost-Commit :

From: john_at_[hidden]
Date: 2008-04-21 04:47:04


Author: johnmaddock
Date: 2008-04-21 04:47:04 EDT (Mon, 21 Apr 2008)
New Revision: 44688
URL: http://svn.boost.org/trac/boost/changeset/44688

Log:
Fix msvc warnings using new warning suppression header.
Text files modified:
   trunk/libs/filesystem/test/convenience_test.cpp | 2 --
   trunk/libs/filesystem/test/fstream_test.cpp | 3 +--
   trunk/libs/filesystem/test/operations_test.cpp | 4 +---
   trunk/libs/filesystem/test/wide_test.cpp | 3 +--
   4 files changed, 3 insertions(+), 9 deletions(-)

Modified: trunk/libs/filesystem/test/convenience_test.cpp
==============================================================================
--- trunk/libs/filesystem/test/convenience_test.cpp (original)
+++ trunk/libs/filesystem/test/convenience_test.cpp 2008-04-21 04:47:04 EDT (Mon, 21 Apr 2008)
@@ -12,8 +12,6 @@
 // See http://msdn.microsoft.com/msdnmag/issues/05/05/SafeCandC/default.aspx
 // But at least in VC++ 8.0 betas, their own libraries use the problem
 // practices. So turn off the warnings.
-#define _CRT_SECURE_NO_DEPRECATE
-#define _SCL_SECURE_NO_DEPRECATE
 
 #include <boost/filesystem/convenience.hpp>
 namespace fs = boost::filesystem;

Modified: trunk/libs/filesystem/test/fstream_test.cpp
==============================================================================
--- trunk/libs/filesystem/test/fstream_test.cpp (original)
+++ trunk/libs/filesystem/test/fstream_test.cpp 2008-04-21 04:47:04 EDT (Mon, 21 Apr 2008)
@@ -11,8 +11,7 @@
 // See http://msdn.microsoft.com/msdnmag/issues/05/05/SafeCandC/default.aspx
 // But at least in VC++ 8.0 betas, their own libraries use the problem
 // practices. So turn off the warnings.
-#define _CRT_SECURE_NO_DEPRECATE
-#define _SCL_SECURE_NO_DEPRECATE
+#include <boost/config/warning_disable.hpp>
 
 #include <boost/filesystem/fstream.hpp>
 #include <boost/filesystem/operations.hpp>

Modified: trunk/libs/filesystem/test/operations_test.cpp
==============================================================================
--- trunk/libs/filesystem/test/operations_test.cpp (original)
+++ trunk/libs/filesystem/test/operations_test.cpp 2008-04-21 04:47:04 EDT (Mon, 21 Apr 2008)
@@ -11,9 +11,7 @@
 // See http://msdn.microsoft.com/msdnmag/issues/05/05/SafeCandC/default.aspx
 // But at least in VC++ 8.0 betas, their own libraries use the problem
 // practices. So turn off the warnings.
-#define _CRT_SECURE_NO_DEPRECATE
-#define _SCL_SECURE_NO_DEPRECATE
-
+#include <boost/config/warning_disable.hpp>
 #include <boost/filesystem/operations.hpp>
 #include <boost/filesystem/convenience.hpp>
 #include <boost/cerrno.hpp>

Modified: trunk/libs/filesystem/test/wide_test.cpp
==============================================================================
--- trunk/libs/filesystem/test/wide_test.cpp (original)
+++ trunk/libs/filesystem/test/wide_test.cpp 2008-04-21 04:47:04 EDT (Mon, 21 Apr 2008)
@@ -12,8 +12,7 @@
 // See http://msdn.microsoft.com/msdnmag/issues/05/05/SafeCandC/default.aspx
 // But at least in VC++ 8.0 betas, their own libraries use the problem
 // practices. So turn off the warnings.
-#define _CRT_SECURE_NO_DEPRECATE
-#define _SCL_SECURE_NO_DEPRECATE
+#include <boost/config/warning_disable.hpp>
 
 #include <boost/filesystem/config.hpp>
 # ifdef BOOST_FILESYSTEM_NARROW_ONLY


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk