From fafa622a5bdf71adfbb4334541c3b65f29c89ca9 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Sun, 12 Jan 2020 15:05:40 -0500 Subject: all: fix or silence various gcc warnings As usual, gcc finds some real problems but also reports a ton of noise. Fix the problems and quiet the noise. --- src/cmd/tpic/input.c | 2 +- src/cmd/tpic/pic.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cmd/tpic') diff --git a/src/cmd/tpic/input.c b/src/cmd/tpic/input.c index 6885f650..85b7dbb5 100644 --- a/src/cmd/tpic/input.c +++ b/src/cmd/tpic/input.c @@ -438,7 +438,7 @@ errcheck(double x, char *s) return x; } -char errbuf[200]; +char errbuf[1000]; void yyerror(char *s) diff --git a/src/cmd/tpic/pic.h b/src/cmd/tpic/pic.h index a11c7478..104caceb 100644 --- a/src/cmd/tpic/pic.h +++ b/src/cmd/tpic/pic.h @@ -11,7 +11,7 @@ #define dprintf if(dbg)printf -extern char errbuf[200]; +extern char errbuf[1000]; #undef sprintf /* Snow Leopard */ -- cgit v1.2.3