krb5 commit: Fix getdate.y compatability with POSIX yacc

Greg Hudson <[email protected]>
Newsgroups gmane.comp.encryption.kerberos.cvs
Message-ID <[email protected]>
https://github.com/krb5/krb5/commit/4e126e2cae8c3a63f252776ac6efc93a2d8e0d5c
commit 4e126e2cae8c3a63f252776ac6efc93a2d8e0d5c
Author: Robbie Harwood <[email protected]>
Date:   Tue Sep 25 13:20:55 2018 -0400

    Fix getdate.y compatability with POSIX yacc
    
    Commit 28fd0a934cdc7b3b42ce213c6d334d4edf1ab591 muted a warning from
    bison about shift/reduce conflicts in the grammer.  However, the
    extension for suppressing the warning is bison-only.  Revert that
    portion of the change and live with the warning rather than adding
    additional conditionalization.  Reported by Michael Osipov.

 src/kadmin/cli/getdate.y |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/kadmin/cli/getdate.y b/src/kadmin/cli/getdate.y
index cb039ac..4f0fac2 100644
--- a/src/kadmin/cli/getdate.y
+++ b/src/kadmin/cli/getdate.y
@@ -176,8 +176,9 @@ static time_t	yyRelSeconds;
 
 %}
 
-/* Mute shift/reduce warning as per header comment. */
-%expect 4
+/* This would mute the shift/reduce warnings as per header comment; however,
+ * it relies on bison extensions. */
+/* %expect 4 */
 
 %union {
     time_t		Number;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.