Remove simple compilation warnings for tests

This commit is contained in:
Danny Robson 2012-04-19 16:54:36 +10:00
parent cf69a5ba7a
commit 1627754b6a
3 changed files with 6 additions and 6 deletions

View File

@ -11,7 +11,7 @@ using namespace std;
int
main (int argc, char **argv) {
main (int, char **) {
uint16_t u16 = 0x1358;
uint32_t u32 = 0x12345678;

View File

@ -12,7 +12,7 @@ using namespace std;
int
main (int argc, char **argv) {
main (int, char **) {
struct ip_test {
const char *str;
const ipv4::ip ip;

View File

@ -52,10 +52,10 @@ check_keep_value (void) {
// Give every item a unique value
for (unsigned int i = 0; i < uintpool.capacity (); ++i) {
uint64_t *uint = uintpool.acquire ();
*uint = i;
uint64_t *item = uintpool.acquire ();
*item = i;
uintvector.push_back(uint);
uintvector.push_back(item);
}
check (uintvector.size () == uintpool.capacity ());
@ -79,7 +79,7 @@ check_keep_value (void) {
int
main (int argc, char **argv) {
main (int, char **) {
check_single ();
check_unique_ptr ();
check_keep_value ();