From f25aa0d32d0cbb9fc2f60bd793d0ed8af8e210ec Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Thu, 27 Jul 2000 15:58:01 +0000 Subject: [PATCH] fini.c (main): Avoid automatic aggregate initialization. * fini.c (main): Avoid automatic aggregate initialization. * proj.h: Indent #error directive. From-SVN: r35294 --- gcc/f/ChangeLog | 6 ++++++ gcc/f/fini.c | 4 +++- gcc/f/proj.h | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/gcc/f/ChangeLog b/gcc/f/ChangeLog index bfeb7cf0036..72a63b0cb53 100644 --- a/gcc/f/ChangeLog +++ b/gcc/f/ChangeLog @@ -1,3 +1,9 @@ +Thu Jul 27 11:50:08 2000 Kaveh R. Ghazi + + * fini.c (main): Avoid automatic aggregate initialization. + + * proj.h: Indent #error directive. + 2000-07-26 Toon Moene * lang-specs.h: Remove one /dev/null from tradcpp invocation. diff --git a/gcc/f/fini.c b/gcc/f/fini.c index e5eb5391ac1..f685df1847a 100644 --- a/gcc/f/fini.c +++ b/gcc/f/fini.c @@ -234,7 +234,7 @@ int main (int argc, char **argv) { char buf[MAXNAMELEN]; - char last_buf[MAXNAMELEN] = ""; + char last_buf[MAXNAMELEN]; char kwname[MAXNAMELEN]; char routine[32]; char type[32]; @@ -256,6 +256,8 @@ main (int argc, char **argv) int cc; bool do_exit = FALSE; + last_buf[0] = '\0'; + for (i = 0; ((size_t) i) < ARRAY_SIZE (names); ++i) { /* Initialize length/name ordered list roots. */ names[i].first = (name) &names[i]; diff --git a/gcc/f/proj.h b/gcc/f/proj.h index 8671fdaf431..d0b41a23f9a 100644 --- a/gcc/f/proj.h +++ b/gcc/f/proj.h @@ -32,7 +32,7 @@ the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA #include "system.h" #if (GCC_VERSION < 2000) -#error "You have to use gcc 2.x to build g77 (might be fixed in g77-0.6)." + #error "You have to use gcc 2.x to build g77 (might be fixed in g77-0.6)." #endif /* Include files everyone gets. is needed for assert().