[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gnugo-devel] doc update and warnings fixed
From: |
Arend Bayer |
Subject: |
Re: [gnugo-devel] doc update and warnings fixed |
Date: |
Sun, 29 Aug 2004 18:47:40 +0200 (CEST) |
On Sun, 29 Aug 2004, wrote:
> This patch makes some minor doc updates and fixes a couple of warnings
> on non-gcc compilers.
I also got these when compiling with gcc 3.5. Additionally, I got a
compile error in conn.c, because the conn[] array is first decleared
extern and then static. I suppose gcc 3.5 is right to reject this?
Arend
Index: patterns/mkpat.c
===================================================================
RCS file: /cvsroot/gnugo/gnugo/patterns/mkpat.c,v
retrieving revision 1.137.2.1
diff -u -p -r1.137.2.1 mkpat.c
--- patterns/mkpat.c 28 Aug 2004 21:43:10 -0000 1.137.2.1
+++ patterns/mkpat.c 29 Aug 2004 16:46:18 -0000
@@ -3467,9 +3467,9 @@ main(int argc, char *argv[])
/* Forward declaration, which autohelpers might need. */
if (database_type != DB_FULLBOARD) {
if (database_type != DB_CORNER)
- fprintf(output_FILE, "extern struct pattern %s[];\n\n", prefix);
+ fprintf(output_FILE, "static struct pattern %s[];\n\n", prefix);
else
- fprintf(output_FILE, "extern struct corner_pattern %s[];\n\n", prefix);
+ fprintf(output_FILE, "static struct corner_pattern %s[];\n\n", prefix);
}
/* Write the autohelper code. */