aboutsummaryrefslogtreecommitdiff
path: root/gold
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2008-12-09 16:03:47 +0000
committerIan Lance Taylor <ian@airs.com>2008-12-09 16:03:47 +0000
commitbb6f53d37a05df453b66f242b4074bca20bd8c67 (patch)
tree93979e42ce6bfaa262726c520bc594486ec9d145 /gold
parent3e22044af11526161ac614fbdc9d0522e1d7221b (diff)
downloadgdb-bb6f53d37a05df453b66f242b4074bca20bd8c67.zip
gdb-bb6f53d37a05df453b66f242b4074bca20bd8c67.tar.gz
gdb-bb6f53d37a05df453b66f242b4074bca20bd8c67.tar.bz2
* testsuite/initpri1.c: Change all declarations to be full
prototypes by adding void, to avoid compiler warnings.
Diffstat (limited to 'gold')
-rw-r--r--gold/ChangeLog5
-rw-r--r--gold/testsuite/initpri1.c18
2 files changed, 14 insertions, 9 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog
index fbad1ee..0d9d877 100644
--- a/gold/ChangeLog
+++ b/gold/ChangeLog
@@ -1,3 +1,8 @@
+2008-12-09 Ian Lance Taylor <iant@google.com>
+
+ * testsuite/initpri1.c: Change all declarations to be full
+ prototypes by adding void, to avoid compiler warnings.
+
2008-12-05 Rafael Avila de Espindola <espindola@google.com>
* options.cc (General_options::parse_plugin_opt): New.
diff --git a/gold/testsuite/initpri1.c b/gold/testsuite/initpri1.c
index 890df03..28c6c91 100644
--- a/gold/testsuite/initpri1.c
+++ b/gold/testsuite/initpri1.c
@@ -30,9 +30,9 @@
int i;
int j;
-void c1() __attribute__((constructor (500)));
-void c2() __attribute__((constructor (700)));
-void c3() __attribute__((constructor (600)));
+void c1(void) __attribute__((constructor (500)));
+void c2(void) __attribute__((constructor (700)));
+void c3(void) __attribute__((constructor (600)));
void c1() {
if (i++ != 0)
@@ -49,9 +49,9 @@ void c3() {
abort ();
}
-void d1() __attribute__((destructor (500)));
-void d2() __attribute__((destructor (700)));
-void d3() __attribute__((destructor (600)));
+void d1(void) __attribute__((destructor (500)));
+void d2(void) __attribute__((destructor (700)));
+void d3(void) __attribute__((destructor (600)));
void d1() {
if (--i != 0)
@@ -70,7 +70,7 @@ void d3() {
abort ();
}
-void cd4() __attribute__((constructor (800), destructor (800)));
+void cd4(void) __attribute__((constructor (800), destructor (800)));
void cd4() {
if (i != 3)
@@ -78,7 +78,7 @@ void cd4() {
++j;
}
-void cd5() __attribute__((constructor, destructor));
+void cd5(void) __attribute__((constructor, destructor));
void cd5() {
if (i != 3)
@@ -86,7 +86,7 @@ void cd5() {
++j;
}
-int main () {
+int main (void) {
if (i != 3)
return 1;
if (j != 2)