From: David van Moolenbroek Date: Tue, 28 Jul 2015 13:24:44 +0000 (+0000) Subject: tests: resolve new compiler warnings X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zpipe.c?a=commitdiff_plain;h=ea69bfc71d8a42acb6aa3e36b70e5733eae9a459;p=minix.git tests: resolve new compiler warnings Change-Id: I57f6602a9fe9e8524f7da4320b0d1a46889b90d6 --- diff --git a/minix/tests/test80.c b/minix/tests/test80.c index 3db8140b1..0975387aa 100644 --- a/minix/tests/test80.c +++ b/minix/tests/test80.c @@ -50,7 +50,6 @@ static void callback_cleanup(void) { int main(int argc, char *argv[]) { - int i; struct sockaddr_in clientaddr = { .sin_family = AF_INET, .sin_port = htons(PORT1), diff --git a/minix/tests/test81.c b/minix/tests/test81.c index 1043bcc2f..1a3188cd6 100644 --- a/minix/tests/test81.c +++ b/minix/tests/test81.c @@ -50,7 +50,6 @@ static void callback_cleanup(void) { int main(int argc, char *argv[]) { - int i; struct sockaddr_in clientaddr = { .sin_family = AF_INET, .sin_port = htons(PORT1), diff --git a/minix/tests/test83.c b/minix/tests/test83.c index 35122fbfe..2e2167f7c 100644 --- a/minix/tests/test83.c +++ b/minix/tests/test83.c @@ -170,8 +170,8 @@ static char *sigstr_itoa(char *p, unsigned long n) { return p; } +#if 0 static void dbgprintdata(const void *data, size_t size) { -#if DEBUG size_t addr; const unsigned char *p = data; @@ -184,8 +184,8 @@ static void dbgprintdata(const void *data, size_t size) { } fprintf(stderr, "\n"); fflush(stderr); -#endif } +#endif static void dbgprint_sig(const char *name) { #if DEBUG