From 4e126e2cae8c3a63f252776ac6efc93a2d8e0d5c Mon Sep 17 00:00:00 2001 From: Robbie Harwood Date: Tue, 25 Sep 2018 13:20:55 -0400 Subject: [PATCH] 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 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/kadmin/cli/getdate.y b/src/kadmin/cli/getdate.y index cb039acb30..4f0fac2e3f 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; -- 2.47.2