From 1627754b6a889830340ca70098b545ff61ec8909 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Thu, 19 Apr 2012 16:54:36 +1000 Subject: [PATCH] Remove simple compilation warnings for tests --- test/hton.cpp | 2 +- test/ip.cpp | 2 +- test/pool.cpp | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test/hton.cpp b/test/hton.cpp index aa87bde3..34bb1476 100644 --- a/test/hton.cpp +++ b/test/hton.cpp @@ -11,7 +11,7 @@ using namespace std; int -main (int argc, char **argv) { +main (int, char **) { uint16_t u16 = 0x1358; uint32_t u32 = 0x12345678; diff --git a/test/ip.cpp b/test/ip.cpp index 2b15df4d..df4390a7 100644 --- a/test/ip.cpp +++ b/test/ip.cpp @@ -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; diff --git a/test/pool.cpp b/test/pool.cpp index b59a21f2..e6d3e7f7 100644 --- a/test/pool.cpp +++ b/test/pool.cpp @@ -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 ();