Remove simple compilation warnings for tests
This commit is contained in:
parent
cf69a5ba7a
commit
1627754b6a
@ -11,7 +11,7 @@ using namespace std;
|
|||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
main (int argc, char **argv) {
|
main (int, char **) {
|
||||||
|
|
||||||
uint16_t u16 = 0x1358;
|
uint16_t u16 = 0x1358;
|
||||||
uint32_t u32 = 0x12345678;
|
uint32_t u32 = 0x12345678;
|
||||||
|
@ -12,7 +12,7 @@ using namespace std;
|
|||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
main (int argc, char **argv) {
|
main (int, char **) {
|
||||||
struct ip_test {
|
struct ip_test {
|
||||||
const char *str;
|
const char *str;
|
||||||
const ipv4::ip ip;
|
const ipv4::ip ip;
|
||||||
|
@ -52,10 +52,10 @@ check_keep_value (void) {
|
|||||||
|
|
||||||
// Give every item a unique value
|
// Give every item a unique value
|
||||||
for (unsigned int i = 0; i < uintpool.capacity (); ++i) {
|
for (unsigned int i = 0; i < uintpool.capacity (); ++i) {
|
||||||
uint64_t *uint = uintpool.acquire ();
|
uint64_t *item = uintpool.acquire ();
|
||||||
*uint = i;
|
*item = i;
|
||||||
|
|
||||||
uintvector.push_back(uint);
|
uintvector.push_back(item);
|
||||||
}
|
}
|
||||||
check (uintvector.size () == uintpool.capacity ());
|
check (uintvector.size () == uintpool.capacity ());
|
||||||
|
|
||||||
@ -79,7 +79,7 @@ check_keep_value (void) {
|
|||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
main (int argc, char **argv) {
|
main (int, char **) {
|
||||||
check_single ();
|
check_single ();
|
||||||
check_unique_ptr ();
|
check_unique_ptr ();
|
||||||
check_keep_value ();
|
check_keep_value ();
|
||||||
|
Loading…
Reference in New Issue
Block a user