Commit ba6a601c by Paolo Carlini Committed by Paolo Carlini

remove_freed.cc: Fix test01 return type to void.

2010-08-31  Paolo Carlini  <paolo.carlini@oracle.com>

	* testsuite/23_containers/forward_list/operations/remove_freed.cc:
	Fix test01 return type to void.
	* testsuite/util/exception/safety.h: Avoid -Wall -m32 warnings.
	* testsuite/util/replacement_memory_operators.h: Likewise.

From-SVN: r163684
parent 9c6a2bee
2010-08-31 Paolo Carlini <paolo.carlini@oracle.com>
* testsuite/23_containers/forward_list/operations/remove_freed.cc:
Fix test01 return type to void.
* testsuite/util/exception/safety.h: Avoid -Wall -m32 warnings.
* testsuite/util/replacement_memory_operators.h: Likewise.
2010-08-29 Paolo Carlini <paolo.carlini@oracle.com> 2010-08-29 Paolo Carlini <paolo.carlini@oracle.com>
* testsuite/23_containers/bitset/invalidation: Move... * testsuite/23_containers/bitset/invalidation: Move...
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
// 23.3.3.5 forward_list operations [forwardlist.ops] // 23.3.3.5 forward_list operations [forwardlist.ops]
// Used to cause many Valgrind errors: LWG 526-type situation. // Used to cause many Valgrind errors: LWG 526-type situation.
int test01() void test01()
{ {
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
......
...@@ -52,13 +52,13 @@ namespace __gnu_test ...@@ -52,13 +52,13 @@ namespace __gnu_test
__s += "\n"; __s += "\n";
__s += "random number generated is: "; __s += "random number generated is: ";
char buf[40]; char buf[40];
__builtin_sprintf(buf, "%lu", random); __builtin_sprintf(buf, "%lu", (unsigned long)random);
__s += buf; __s += buf;
__s += " on range ["; __s += " on range [";
__builtin_sprintf(buf, "%lu", distribution.min()); __builtin_sprintf(buf, "%lu", (unsigned long)distribution.min());
__s += buf; __s += buf;
__s += ", "; __s += ", ";
__builtin_sprintf(buf, "%lu", distribution.max()); __builtin_sprintf(buf, "%lu", (unsigned long)distribution.max());
__s += buf; __s += buf;
__s += "]\n"; __s += "]\n";
std::__throw_out_of_range(__s.c_str()); std::__throw_out_of_range(__s.c_str());
......
...@@ -108,6 +108,6 @@ void operator delete(void* p) throw() ...@@ -108,6 +108,6 @@ void operator delete(void* p) throw()
if (count == 0) if (count == 0)
std::printf("All memory released \n"); std::printf("All memory released \n");
else else
std::printf("%lu allocations to be released \n", count); std::printf("%lu allocations to be released \n", (unsigned long)count);
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment