From: Joel E. Denny Date: Thu, 30 Apr 2009 00:50:01 +0000 (-0400) Subject: Pacify ./configure --enable-gcc-warnings. X-Git-Tag: v2.7.90~881 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/d521ee19f824305ac03a38cd52117f3a660a80b7 Pacify ./configure --enable-gcc-warnings. * tests/input.at (Symbols): Prototype yyerror and yylex. (cherry picked from commit 0b59345789e88b34ec7e3a68b99d6fbd368cb798) Conflicts: ChangeLog --- diff --git a/ChangeLog b/ChangeLog index 20d57d86..a7dc476a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,9 @@ -2009-04-24 Joel E. Denny +2009-04-29 Joel E. Denny + + Pacify ./configure --enable-gcc-warnings. + * tests/input.at (Symbols): Prototype yyerror and yylex. + +2009-04-29 Joel E. Denny Document how `%define "var" "value"' is not M4-friendly. * src/parse-gram.y (variable): In comments here. diff --git a/tests/input.at b/tests/input.at index db3f3234..4eaa8df3 100644 --- a/tests/input.at +++ b/tests/input.at @@ -624,6 +624,10 @@ AT_DATA_GRAMMAR([input.y], %token WITHOUT_DASH "WITHOUT-DASH" %token WITH.PERIOD %token WITHOUT_PERIOD "WITHOUT.PERIOD" +%code { + void yyerror (char const *); + int yylex (void); +} %% start: with-dash without_dash with.period without_period; with-dash: WITH-DASH; @@ -636,13 +640,13 @@ without_period: "WITHOUT.PERIOD"; # POSIX Yacc accept periods, but not dashes. AT_BISON_CHECK([--yacc input.y], [1], [], [[input.y:9.8-16: POSIX Yacc forbids dashes in symbol names: WITH-DASH -input.y:14.8-16: POSIX Yacc forbids dashes in symbol names: with-dash +input.y:18.8-16: POSIX Yacc forbids dashes in symbol names: with-dash ]]) # So warn about them. AT_BISON_CHECK([-Wyacc input.y], [], [], [[input.y:9.8-16: warning: POSIX Yacc forbids dashes in symbol names: WITH-DASH -input.y:14.8-16: warning: POSIX Yacc forbids dashes in symbol names: with-dash +input.y:18.8-16: warning: POSIX Yacc forbids dashes in symbol names: with-dash ]]) # Dashes are fine for GNU Bison.