|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r57856 - trunk/libs/test/test
From: gennadiy.rozental_at_[hidden]
Date: 2009-11-22 22:04:39
Author: rogeeff
Date: 2009-11-22 22:04:38 EST (Sun, 22 Nov 2009)
New Revision: 57856
URL: http://svn.boost.org/trac/boost/changeset/57856
Log:
More warnings silenced
Text files modified:
trunk/libs/test/test/boost_check_equal_str.cpp | 2 +-
trunk/libs/test/test/foreach_test.cpp | 4 ++++
trunk/libs/test/test/result_report_test.cpp | 2 ++
trunk/libs/test/test/test_tools_test.cpp | 2 +-
4 files changed, 8 insertions(+), 2 deletions(-)
Modified: trunk/libs/test/test/boost_check_equal_str.cpp
==============================================================================
--- trunk/libs/test/test/boost_check_equal_str.cpp (original)
+++ trunk/libs/test/test/boost_check_equal_str.cpp 2009-11-22 22:04:38 EST (Sun, 22 Nov 2009)
@@ -19,8 +19,8 @@
{
char const* buf_ptr_cch = "abc";
char const buf_array_cch[] = "abc";
- char* buf_ptr_ch = "abc";
char buf_array_ch[] = "abc";
+ char* buf_ptr_ch = buf_array_ch;
std::string buf_str = "abc";
BOOST_CHECK_EQUAL(buf_ptr_cch, buf_ptr_cch);
Modified: trunk/libs/test/test/foreach_test.cpp
==============================================================================
--- trunk/libs/test/test/foreach_test.cpp (original)
+++ trunk/libs/test/test/foreach_test.cpp 2009-11-22 22:04:38 EST (Sun, 22 Nov 2009)
@@ -20,6 +20,10 @@
#include <boost/test/utils/foreach.hpp>
+#ifdef BOOST_MSVC
+#pragma warning(disable:4702) // Unreachable code
+#endif
+
template<class T>
void baz( std::list<T>const& list_of_T )
{
Modified: trunk/libs/test/test/result_report_test.cpp
==============================================================================
--- trunk/libs/test/test/result_report_test.cpp (original)
+++ trunk/libs/test/test/result_report_test.cpp 2009-11-22 22:04:38 EST (Sun, 22 Nov 2009)
@@ -58,6 +58,7 @@
void very_bad_foo() {
log_guard lg;
+ ut_detail::ignore_unused_variable_warning( lg );
onullstream_type null_out;
unit_test_log.set_stream( null_out );
BOOST_FAIL( "" );
@@ -105,6 +106,7 @@
BOOST_AUTO_TEST_CASE( test_result_reports )
{
guard G;
+ ut_detail::ignore_unused_variable_warning( G );
#define PATTERN_FILE_NAME "result_report_test.pattern"
Modified: trunk/libs/test/test/test_tools_test.cpp
==============================================================================
--- trunk/libs/test/test/test_tools_test.cpp (original)
+++ trunk/libs/test/test/test_tools_test.cpp 2009-11-22 22:04:38 EST (Sun, 22 Nov 2009)
@@ -503,7 +503,7 @@
//____________________________________________________________________________//
struct A {
- friend std::ostream& operator<<( std::ostream& str, A const& a ) { str << "struct A"; return str;}
+ friend std::ostream& operator<<( std::ostream& str, A const& ) { str << "struct A"; return str;}
};
TEST_CASE( test_BOOST_TEST_MESSAGE )
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