+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.
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)
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)
abort ();
}
-void cd4() __attribute__((constructor (800), destructor (800)));
+void cd4(void) __attribute__((constructor (800), destructor (800)));
void cd4() {
if (i != 3)
++j;
}
-void cd5() __attribute__((constructor, destructor));
+void cd5(void) __attribute__((constructor, destructor));
void cd5() {
if (i != 3)
++j;
}
-int main () {
+int main (void) {
if (i != 3)
return 1;
if (j != 2)