2000-12-05  Andreas Jaeger  <aj@suse.de>

	* nss/test-netdb.c: Mark local functions as static to avoid
	warnings.
	(main): Use return to silence warning.

	* stdlib/test-canon.c (check_path): Mark as static to avoid warning.

	* stdio-common/test-popen.c: Mark local functions as static to
	avoid warnings.
	(main): Use return to silence warning.

	* stdlib/testsort.c (compare): Mark as static to avoid warning.

	* assert/test-assert.c: Mark local functions as static to avoid
	warnings.
	* assert/test-assert-perr.c: Likewise.

	* math/libm-test.inc (main): Use return to silence warnings.
This commit is contained in:
Andreas Jaeger 2000-12-05 08:17:58 +00:00
parent d6f1fe47aa
commit cf3141a59d
7 changed files with 37 additions and 16 deletions

View File

@ -1,3 +1,23 @@
2000-12-05 Andreas Jaeger <aj@suse.de>
* nss/test-netdb.c: Mark local functions as static to avoid
warnings.
(main): Use return to silence warning.
* stdlib/test-canon.c (check_path): Mark as static to avoid warning.
* stdio-common/test-popen.c: Mark local functions as static to
avoid warnings.
(main): Use return to silence warning.
* stdlib/testsort.c (compare): Mark as static to avoid warning.
* assert/test-assert.c: Mark local functions as static to avoid
warnings.
* assert/test-assert-perr.c: Likewise.
* math/libm-test.inc (main): Use return to silence warnings.
2000-12-04 Ulrich Drepper <drepper@redhat.com> 2000-12-04 Ulrich Drepper <drepper@redhat.com>
* math/fenv.h: Fix typo in comment. * math/fenv.h: Fix typo in comment.

View File

@ -14,7 +14,7 @@
jmp_buf rec; jmp_buf rec;
char buf[160]; char buf[160];
void static void
sigabrt (int unused) sigabrt (int unused)
{ {
longjmp (rec, 1); /* recover control */ longjmp (rec, 1); /* recover control */
@ -22,13 +22,13 @@ sigabrt (int unused)
#undef NDEBUG #undef NDEBUG
#include <assert.h> #include <assert.h>
void static void
assert1 (void) assert1 (void)
{ {
assert_perror (1); assert_perror (1);
} }
void static void
assert2 (void) assert2 (void)
{ {
assert_perror (0); assert_perror (0);
@ -36,7 +36,7 @@ assert2 (void)
#define NDEBUG #define NDEBUG
#include <assert.h> #include <assert.h>
void static void
assert3 (void) assert3 (void)
{ {
assert_perror (2); assert_perror (2);

View File

@ -14,7 +14,7 @@
jmp_buf rec; jmp_buf rec;
char buf[160]; char buf[160];
void static void
sigabrt (int unused) sigabrt (int unused)
{ {
longjmp (rec, 1); /* recover control */ longjmp (rec, 1); /* recover control */
@ -22,13 +22,13 @@ sigabrt (int unused)
#undef NDEBUG #undef NDEBUG
#include <assert.h> #include <assert.h>
void static void
assert1 (void) assert1 (void)
{ {
assert (1 == 2); assert (1 == 2);
} }
void static void
assert2 (void) assert2 (void)
{ {
assert (1 == 1); assert (1 == 1);
@ -37,7 +37,7 @@ assert2 (void)
#define NDEBUG #define NDEBUG
#include <assert.h> #include <assert.h>
void static void
assert3 (void) assert3 (void)
{ {
assert (2 == 3); assert (2 == 3);

View File

@ -4401,10 +4401,11 @@ main (int argc, char **argv)
if (noErrors) if (noErrors)
{ {
printf (" %d errors occured.\n", noErrors); printf (" %d errors occured.\n", noErrors);
exit (1); return 1;
} }
printf (" All tests passed successfully.\n"); printf (" All tests passed successfully.\n");
exit (0);
return 0;
} }
/* /*

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1997, 1998 Free Software Foundation, Inc. /* Copyright (C) 1997, 1998, 2000 Free Software Foundation, Inc.
This file is part of the GNU C Library. This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or The GNU C Library is free software; you can redistribute it and/or
@ -20,7 +20,7 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
void static void
write_data (FILE *stream) write_data (FILE *stream)
{ {
int i; int i;
@ -33,7 +33,7 @@ write_data (FILE *stream)
} }
} }
void static void
read_data (FILE *stream) read_data (FILE *stream)
{ {
int i, j; int i, j;
@ -99,5 +99,5 @@ main (void)
} }
puts (wstatus | rstatus ? "Test FAILED!" : "Test succeeded."); puts (wstatus | rstatus ? "Test FAILED!" : "Test succeeded.");
exit (wstatus | rstatus); return (wstatus | rstatus);
} }

View File

@ -93,7 +93,7 @@ struct {
}; };
int static int
check_path (const char * result, const char * expected) check_path (const char * result, const char * expected)
{ {
int good; int good;

View File

@ -2,7 +2,7 @@
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>
int static int
compare (const void *a, const void *b) compare (const void *a, const void *b)
{ {
return strcmp (*(char **) a, *(char **) b); return strcmp (*(char **) a, *(char **) b);