From: Greg Hudson Date: Tue, 21 Jul 2020 05:41:21 +0000 (-0400) Subject: Fix token and type declarations in getdate.y X-Git-Tag: krb5-1.19-beta1~52 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1096%2Fhead;p=thirdparty%2Fkrb5.git Fix token and type declarations in getdate.y Bison 3.5 adds a POSIX yacc compliance warning that %type should only be applied to non-terminals. Use %token for terminals in getdate.y. Reported by Norm Green. ticket: 8927 --- diff --git a/src/kadmin/cli/getdate.y b/src/kadmin/cli/getdate.y index 4f0fac2e3f..2b8dbcdb89 100644 --- a/src/kadmin/cli/getdate.y +++ b/src/kadmin/cli/getdate.y @@ -185,12 +185,10 @@ static time_t yyRelSeconds; enum _MERIDIAN Meridian; } -%token tAGO tDAY tDAYZONE tID tMERIDIAN tMINUTE_UNIT tMONTH tMONTH_UNIT -%token tSEC_UNIT tSNUMBER tUNUMBER tZONE tDST tNEVER - -%type tDAY tDAYZONE tMINUTE_UNIT tMONTH tMONTH_UNIT -%type tSEC_UNIT tSNUMBER tUNUMBER tZONE -%type tMERIDIAN o_merid +%token tAGO tID tDST tNEVER +%token tDAY tDAYZONE tMINUTE_UNIT tMONTH tMONTH_UNIT +%token tSEC_UNIT tSNUMBER tUNUMBER tZONE tMERIDIAN +%type o_merid %%