Ticket #3598: patch.diff
| File patch.diff, 6.4 KB (added by , 13 years ago) |
|---|
-
test_tools_test.cpp
503 503 //____________________________________________________________________________// 504 504 505 505 struct A { 506 friend std::ostream& operator<<( std::ostream& str, A const& a) { str << "struct A"; return str;}506 friend std::ostream& operator<<( std::ostream& str, A const& ) { str << "struct A"; return str;} 507 507 }; 508 508 509 509 TEST_CASE( test_BOOST_TEST_MESSAGE ) -
boost_check_equal_str.cpp
19 19 { 20 20 char const* buf_ptr_cch = "abc"; 21 21 char const buf_array_cch[] = "abc"; 22 char* buf_ptr_ch = "abc";23 22 char buf_array_ch[] = "abc"; 23 char* buf_ptr_ch = buf_array_ch; 24 24 std::string buf_str = "abc"; 25 25 26 26 BOOST_CHECK_EQUAL(buf_ptr_cch, buf_ptr_cch); -
foreach_test.cpp
20 20 21 21 #include <boost/test/utils/foreach.hpp> 22 22 23 #ifdef BOOST_MSVC 24 #pragma warning(disable:4702) // Unreachable code 25 #endif 26 23 27 template<class T> 24 28 void baz( std::list<T>const& list_of_T ) 25 29 { -
result_report_test.cpp
58 58 59 59 void very_bad_foo() { 60 60 log_guard lg; 61 (void)lg; // Warning suppression, it is used and needed really! 61 62 onullstream_type null_out; 62 63 unit_test_log.set_stream( null_out ); 63 64 BOOST_FAIL( "" ); … … 105 106 BOOST_AUTO_TEST_CASE( test_result_reports ) 106 107 { 107 108 guard G; 109 (void)G; // Waring suppression, it is used and needed really! 108 110 109 111 #define PATTERN_FILE_NAME "result_report_test.pattern" 110 112 -
../../../boost/test/unit_test_log_formatter.hpp
103 103 // for backward compatibility 104 104 log_exception( os, cd, ex.what() ); 105 105 } 106 virtual void log_exception( std::ostream&, log_checkpoint_data const&, const_string explanation) {}106 virtual void log_exception( std::ostream&, log_checkpoint_data const&, const_string /*explanation*/ ) {} 107 107 108 108 virtual void log_entry_start( std::ostream&, log_entry_data const&, log_entry_types let ) = 0; 109 109 virtual void log_entry_value( std::ostream&, const_string value ) = 0; -
../../../boost/test/impl/execution_monitor.ipp
788 788 ::alarm( 0 ); 789 789 790 790 #ifdef BOOST_TEST_USE_ALT_STACK 791 stack_t sigstk = {}; 791 #ifdef __GNUC__ 792 // We shouldn't need to explicitly initialize all the members here, 793 // but gcc warns if we don't, so add initializers for each of the 794 // members specified in the POSIX std: 795 stack_t sigstk = { 0, 0, 0, }; 796 #else 797 stack_t sigstk = { }; 798 #endif 792 799 793 800 sigstk.ss_size = MINSIGSTKSZ; 794 801 sigstk.ss_flags = SS_DISABLE; … … 1127 1134 execution_monitor::catch_signals( unit_test::callback0<int> const& F ) 1128 1135 { 1129 1136 _invalid_parameter_handler old_iph = _invalid_parameter_handler(); 1130 BOOST_TEST_CRT_HOOK_TYPE old_crt_hook ;1137 BOOST_TEST_CRT_HOOK_TYPE old_crt_hook = 0; 1131 1138 1132 1139 if( !p_catch_system_errors ) 1133 1140 _set_se_translator( &detail::seh_catch_preventer ); -
../../../boost/test/utils/runtime/env/environment.ipp
75 75 76 76 //____________________________________________________________________________// 77 77 78 #ifdef BOOST_MSVC 79 // Suppress warning: 80 // warning C4996: 'getenv': This function or variable may be unsafe. Consider using _dupenv_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 81 #pragma warning(push) 82 #pragma warning(disable:4996) 83 #endif 84 78 85 BOOST_RT_PARAM_INLINE cstring 79 86 sys_read_var( cstring var_name ) 80 87 { … … 82 89 return BOOST_RT_PARAM_GETENV( var_name.begin() ); 83 90 } 84 91 92 #ifdef BOOST_MSVC 93 #pragma warning(pop) 94 #endif 95 85 96 //____________________________________________________________________________// 86 97 87 98 BOOST_RT_PARAM_INLINE void -
../../../boost/test/utils/runtime/config.hpp
67 67 typedef std::basic_ostream<char_type> out_stream; 68 68 #endif 69 69 70 #ifdef BOOST_MSVC 71 // suppress warning 72 // warning C4996: 'putenv': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _putenv. See online help for details. 73 #pragma warning(push) 74 #pragma warning(disable:4996) 75 #endif 76 70 77 #ifndef UNDER_CE 71 78 #if defined(__COMO__) && 0 72 79 inline void … … 92 99 #endif 93 100 #endif 94 101 102 #ifdef BOOST_MSVC 103 #pragma warning(pop) 104 #endif 105 95 106 #define BOOST_RT_PARAM_LITERAL( l ) l 96 107 #define BOOST_RT_PARAM_CSTRING_LITERAL( l ) cstring( l, sizeof( l ) - 1 ) 97 108 #define BOOST_RT_PARAM_GETENV getenv -
../../../boost/test/utils/basic_cstring/basic_cstring.hpp
548 548 --it; 549 549 } 550 550 551 return it == last ? npos : it - begin();551 return it == last ? static_cast<size_type>(npos) : static_cast<size_type>(it - begin()); 552 552 } 553 553 554 554 //____________________________________________________________________________//
