===================================================================
@@ -25,7 +25,7 @@
// 23.3.3.5 forward_list operations [forwardlist.ops]
// Used to cause many Valgrind errors: LWG 526-type situation.
-int test01()
+void test01()
{
bool test __attribute__((unused)) = true;
===================================================================
@@ -52,13 +52,13 @@
__s += "\n";
__s += "random number generated is: ";
char buf[40];
- __builtin_sprintf(buf, "%lu", random);
+ __builtin_sprintf(buf, "%lu", (unsigned long)random);
__s += buf;
__s += " on range [";
- __builtin_sprintf(buf, "%lu", distribution.min());
+ __builtin_sprintf(buf, "%lu", (unsigned long)distribution.min());
__s += buf;
__s += ", ";
- __builtin_sprintf(buf, "%lu", distribution.max());
+ __builtin_sprintf(buf, "%lu", (unsigned long)distribution.max());
__s += buf;
__s += "]\n";
std::__throw_out_of_range(__s.c_str());
===================================================================
@@ -108,6 +108,6 @@
if (count == 0)
std::printf("All memory released \n");
else
- std::printf("%lu allocations to be released \n", count);
+ std::printf("%lu allocations to be released \n", (unsigned long)count);
}
}