summaryrefslogtreecommitdiff
path: root/Build/source/texk
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2009-06-15 15:16:24 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2009-06-15 15:16:24 +0000
commita1d98fc587aabf2890b449221ec9fcf4f951baac (patch)
tree53acb6d5800a3c4e380406ed085c2be81d30ca39 /Build/source/texk
parentfa4a6e52817931e2231cf5804bbe700c759fd420 (diff)
avoid compiler warnings
git-svn-id: svn://tug.org/texlive/trunk@13756 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk')
-rw-r--r--Build/source/texk/web2c/web2c/ChangeLog9
-rw-r--r--Build/source/texk/web2c/web2c/fixwrites.c2
-rw-r--r--Build/source/texk/web2c/web2c/main.c2
-rw-r--r--Build/source/texk/web2c/web2c/splitup.c2
-rw-r--r--Build/source/texk/web2c/web2c/web2c-lexer.c2
-rw-r--r--Build/source/texk/web2c/web2c/web2c-lexer.l2
-rw-r--r--Build/source/texk/web2c/web2c/web2c.h1
7 files changed, 15 insertions, 5 deletions
diff --git a/Build/source/texk/web2c/web2c/ChangeLog b/Build/source/texk/web2c/web2c/ChangeLog
index ff758123912..76f52228b8e 100644
--- a/Build/source/texk/web2c/web2c/ChangeLog
+++ b/Build/source/texk/web2c/web2c/ChangeLog
@@ -1,3 +1,12 @@
+2009-06-09 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * Makefile.am (AM_CFLAGS): enable compiler warnings.
+ * fixwrites.c (advance_cp): declare as static.
+ * main.c (hash): declare as static.
+ * splitup.c (read_line): declare as static.
+ * web2c-lexer.l (yywrap): declare as static.
+ * web2c.h: re-add declaration of get_result_type().
+
2009-05-28 Peter Breitenlohner <peb@mppmu.mpg.de>
* convert: remove all references to mp.
diff --git a/Build/source/texk/web2c/web2c/fixwrites.c b/Build/source/texk/web2c/web2c/fixwrites.c
index 11b111258ad..867c8de7110 100644
--- a/Build/source/texk/web2c/web2c/fixwrites.c
+++ b/Build/source/texk/web2c/web2c/fixwrites.c
@@ -169,7 +169,7 @@ bare P2C(string, cp, char, c)
errors. Ensures that it is the matching bracket that is replaced,
not the first one. */
-char *
+static char *
advance_cp P2C(char *, cp, int, lefts)
{
char *cp1;
diff --git a/Build/source/texk/web2c/web2c/main.c b/Build/source/texk/web2c/web2c/main.c
index 661dcb5fefd..cb763f2fc40 100644
--- a/Build/source/texk/web2c/web2c/main.c
+++ b/Build/source/texk/web2c/web2c/main.c
@@ -141,7 +141,7 @@ semicolon P1H(void)
}
}
-int
+static int
hash P1C(const_string, id)
{
register int i = 0, j;
diff --git a/Build/source/texk/web2c/web2c/splitup.c b/Build/source/texk/web2c/web2c/splitup.c
index 1f9670f002d..0d1a768dc6c 100644
--- a/Build/source/texk/web2c/web2c/splitup.c
+++ b/Build/source/texk/web2c/web2c/splitup.c
@@ -58,7 +58,7 @@ FILE *out, *ini, *temp;
* `true' else `false'. We also keep up with the #ifdef/#endif nesting
* so we know when it's safe to finish writing the current file.
*/
-int
+static int
read_line P1H(void)
{
if (fgets (buffer, sizeof (buffer), stdin) == NULL)
diff --git a/Build/source/texk/web2c/web2c/web2c-lexer.c b/Build/source/texk/web2c/web2c/web2c-lexer.c
index b467f71c379..7b8641c2606 100644
--- a/Build/source/texk/web2c/web2c/web2c-lexer.c
+++ b/Build/source/texk/web2c/web2c/web2c-lexer.c
@@ -743,7 +743,7 @@ extern boolean doing_statements;
giving it ourselves avoids the need to find -lfl or -ll at link time.
This is a good thing, since libfl.a is often installed somewhere that
the linker doesn't search by default. */
-int
+static int
yywrap P1H(void)
{
return 1;
diff --git a/Build/source/texk/web2c/web2c/web2c-lexer.l b/Build/source/texk/web2c/web2c/web2c-lexer.l
index f609d16d89b..d4c55509f28 100644
--- a/Build/source/texk/web2c/web2c/web2c-lexer.l
+++ b/Build/source/texk/web2c/web2c/web2c-lexer.l
@@ -24,7 +24,7 @@ extern boolean doing_statements;
giving it ourselves avoids the need to find -lfl or -ll at link time.
This is a good thing, since libfl.a is often installed somewhere that
the linker doesn't search by default. */
-int
+static int
yywrap P1H(void)
{
return 1;
diff --git a/Build/source/texk/web2c/web2c/web2c.h b/Build/source/texk/web2c/web2c/web2c.h
index c67bc2ea4ea..bccaf6f7541 100644
--- a/Build/source/texk/web2c/web2c/web2c.h
+++ b/Build/source/texk/web2c/web2c/web2c.h
@@ -66,6 +66,7 @@ extern int yyerror P1H(string);
extern void get_string_literal P1H(char*);
extern void get_single_char P1H(char*);
+extern void get_result_type P1H(char*);
extern void get_return_type P1H(char*);
/* No prototypes for these two. As used, neither takes arguments. */