diff options
author | peter <peter@FreeBSD.org> | 2001-02-19 01:10:01 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2001-02-19 01:10:01 +0000 |
commit | 589564befbba344f7c7a37f5bc8fdd1efba8b2e5 (patch) | |
tree | 636e33618fe82220f5b3895bc43ee58c430acc41 /usr.bin/yacc | |
parent | a1acd5d9dc0fcef18856e1f910c76ac39d3667d0 (diff) | |
download | FreeBSD-src-589564befbba344f7c7a37f5bc8fdd1efba8b2e5.zip FreeBSD-src-589564befbba344f7c7a37f5bc8fdd1efba8b2e5.tar.gz |
Have yacc use a prototype for yygrowstack(void) on ANSI compilers.
This fixes a gcc warning with -Wmissing-prototypes.
Diffstat (limited to 'usr.bin/yacc')
-rw-r--r-- | usr.bin/yacc/skeleton.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.bin/yacc/skeleton.c b/usr.bin/yacc/skeleton.c index c3b02b0..aba2abd 100644 --- a/usr.bin/yacc/skeleton.c +++ b/usr.bin/yacc/skeleton.c @@ -67,7 +67,11 @@ char *banner[] = "#define yyclearin (yychar=(YYEMPTY))", "#define yyerrok (yyerrflag=0)", "#define YYRECOVERING() (yyerrflag!=0)", + "#if defined(__cplusplus) || __STDC__", + "static int yygrowstack(void);", + "#else", "static int yygrowstack();", + "#endif", 0 }; |