Remove simple compilation warnings for tests
This commit is contained in:
parent
cf69a5ba7a
commit
1627754b6a
@ -11,7 +11,7 @@ using namespace std;
|
||||
|
||||
|
||||
int
|
||||
main (int argc, char **argv) {
|
||||
main (int, char **) {
|
||||
|
||||
uint16_t u16 = 0x1358;
|
||||
uint32_t u32 = 0x12345678;
|
||||
|
@ -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;
|
||||
|
@ -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 ();
|
||||
|
Loading…
Reference in New Issue
Block a user