aboutsummaryrefslogtreecommitdiff
path: root/gold
diff options
context:
space:
mode:
authorCraig Silverstein <csilvers@google.com>2008-11-06 00:44:32 +0000
committerCraig Silverstein <csilvers@google.com>2008-11-06 00:44:32 +0000
commite0bb29a5842200725829ebdb21dfa1f3c692b223 (patch)
tree584bb550cefb46a7ce98c316f225ceb217e20161 /gold
parent40fbfdfdeffdacdfcc192d880a61470903064931 (diff)
downloadgdb-e0bb29a5842200725829ebdb21dfa1f3c692b223.zip
gdb-e0bb29a5842200725829ebdb21dfa1f3c692b223.tar.gz
gdb-e0bb29a5842200725829ebdb21dfa1f3c692b223.tar.bz2
* 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.
Diffstat (limited to 'gold')
-rw-r--r--gold/ChangeLog7
-rw-r--r--gold/testsuite/tls_test_c.c7
-rw-r--r--gold/testsuite/ver_test_6.c4
3 files changed, 15 insertions, 3 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog
index e13fa98..2850454 100644
--- a/gold/ChangeLog
+++ b/gold/ChangeLog
@@ -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
diff --git a/gold/testsuite/tls_test_c.c b/gold/testsuite/tls_test_c.c
index 1860969..730e46d 100644
--- a/gold/testsuite/tls_test_c.c
+++ b/gold/testsuite/tls_test_c.c
@@ -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);
diff --git a/gold/testsuite/ver_test_6.c b/gold/testsuite/ver_test_6.c
index 4206354..44b483f 100644
--- a/gold/testsuite/ver_test_6.c
+++ b/gold/testsuite/ver_test_6.c
@@ -26,8 +26,10 @@
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;
}