* testsuite/tls_test_c.c: Add prototype for t11 and t11_last.

* testsuite/tls_test_c.c (t11): Add explicit "void" to prototype.
	(t11_last): Likewise.
	* testsuite/ver_test_6.c (main): Likewise.
This commit is contained in:
Craig Silverstein 2008-11-06 00:44:32 +00:00
parent 40fbfdfdef
commit e0bb29a584
3 changed files with 15 additions and 3 deletions

View File

@ -1,3 +1,10 @@
2008-11-05 Craig Silverstein <csilvers@google.com>
* testsuite/tls_test_c.c: Add prototype for t11 and t11_last.
* testsuite/tls_test_c.c (t11): Add explicit "void" to prototype.
(t11_last): Likewise.
* testsuite/ver_test_6.c (main): Likewise.
2008-10-07 Cary Coutant <ccoutant@google.com> 2008-10-07 Cary Coutant <ccoutant@google.com>
* options.c (General_options::finalize): Add check for -static and * options.c (General_options::finalize): Add check for -static and

View File

@ -42,8 +42,11 @@ int v7;
#pragma omp threadprivate (v7) #pragma omp threadprivate (v7)
#endif #endif
int t11(void);
int t11_last(void);
int int
t11() t11(void)
{ {
#ifdef HAVE_OMP_SUPPORT #ifdef HAVE_OMP_SUPPORT
CHECK_EQ_OR_RETURN(v7, 0); CHECK_EQ_OR_RETURN(v7, 0);
@ -53,7 +56,7 @@ t11()
} }
int int
t11_last() t11_last(void)
{ {
#ifdef HAVE_OMP_SUPPORT #ifdef HAVE_OMP_SUPPORT
CHECK_EQ_OR_RETURN(v7, 70); CHECK_EQ_OR_RETURN(v7, 70);

View File

@ -26,8 +26,10 @@
int t3_2; int t3_2;
/* Since we don't use any of the arguments to main, we give it a void
prototype, so as to quiet gcc -Wstrict-prototypes. */
int int
main() main(void)
{ {
return t3_2; return t3_2;
} }