Misc small fixes to suppress warnings.

Code should now be clean with msvc /W4 and gcc /Wall /Wextra -pedantic with the exception of one deliberate warning in one test.

[SVN r57510]
This commit is contained in:
John Maddock
2009-11-09 12:27:54 +00:00
parent febafb7cb8
commit fce9ad4e1b
5 changed files with 17 additions and 2 deletions
+7
View File
@@ -11,6 +11,13 @@
//
// Note: The unit test no longer compile on MSVC 6, but lexical_cast itself works for it.
//
// We need this #define before any #includes: otherwise msvc will emit warnings
// deep within std::string, resulting from our (perfectly legal) use of basic_string
// with a custom traits class:
//
#define _SCL_SECURE_NO_WARNINGS
#include <boost/config.hpp>
#if defined(__INTEL_COMPILER)