Skip to content

Commit 5dacc6b

Browse files
authored
Fix bison warnings on incompatibilities with POSIX Yacc (jqlang#2634)
1 parent 82d5602 commit 5dacc6b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Makefile.am

+4-4
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ BUILT_SOURCES = src/builtin.inc src/version.h
4444
$(AM_V_LEX) echo "NOT building lexer.c!"
4545
endif
4646

47-
# Tell YACC (bison) autoconf macros that you want a header file created.
48-
# If the --warnings=all fails, you probably have an old version of bison
49-
# OSX ships an old bison, so update with homebrew or macports
50-
AM_YFLAGS = --warnings=all -d
47+
# Tell YACC (Bison) autoconf macros that you want a header file created.
48+
# If the --warnings=all fails, you probably have an old version of Bison
49+
# macOS ships an old Bison, so update with Homebrew or MacPorts.
50+
AM_YFLAGS = --warnings=all -Wno-yacc -d
5151

5252
### libjq
5353

src/parser.y

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ struct lexer_param;
2626
}
2727

2828
%locations
29-
%error-verbose
29+
%define parse.error verbose
3030
%define api.pure
3131
%union {
3232
jv literal;

0 commit comments

Comments
 (0)