* testsuite/tls_test_c.c: Add prototype for t11 and t11_last.
authorCraig Silverstein <csilvers@google.com>
Thu, 6 Nov 2008 00:44:32 +0000 (00:44 +0000)
committerCraig Silverstein <csilvers@google.com>
Thu, 6 Nov 2008 00:44:32 +0000 (00:44 +0000)
* testsuite/tls_test_c.c (t11): Add explicit "void" to prototype.
(t11_last): Likewise.
* testsuite/ver_test_6.c (main): Likewise.

gold/ChangeLog
gold/testsuite/tls_test_c.c
gold/testsuite/ver_test_6.c

index e13fa981b5a0b0b9fe9ef45c9b9687e44e83412a..28504547d448add819ebf641e43fa63f2c06ba6e 100644 (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>
 
        * options.c (General_options::finalize): Add check for -static and
index 1860969ff59561f96e85c393e22eb4cdd23e0976..730e46ddad8bb9d435c90192d55fbc8a9895fd51 100644 (file)
@@ -42,8 +42,11 @@ int v7;
 #pragma omp threadprivate (v7)
 #endif
 
+int t11(void);
+int t11_last(void);
+
 int
-t11()
+t11(void)
 {
 #ifdef HAVE_OMP_SUPPORT
   CHECK_EQ_OR_RETURN(v7, 0);
@@ -53,7 +56,7 @@ t11()
 }
 
 int
-t11_last()
+t11_last(void)
 {
 #ifdef HAVE_OMP_SUPPORT
   CHECK_EQ_OR_RETURN(v7, 70);
index 420635477e445ce3f2b7949276021466fc797095..44b483fd591644fc65096671453ed275c160c44f 100644 (file)
 
 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
-main()
+main(void)
 {
   return t3_2;
 }
This page took 0.030799 seconds and 4 git commands to generate.