Only set -Wno-yacc if $YACC supports it

This commit is contained in:
Evan Miller 2020-08-18 09:05:33 -04:00
parent 83666459d2
commit 60c820245d

View File

@ -53,7 +53,9 @@ if $YACC -V >/dev/null 2>&1; then
if $YACC -Wno-conflicts-sr -V >/dev/null 2>&1; then if $YACC -Wno-conflicts-sr -V >/dev/null 2>&1; then
YFLAGS="$YFLAGS -Wno-conflicts-sr" YFLAGS="$YFLAGS -Wno-conflicts-sr"
fi fi
if $YACC -Wno-yacc -V >/dev/null 2>&1; then
YFLAGS="$YFLAGS -Wno-yacc" YFLAGS="$YFLAGS -Wno-yacc"
fi
else else
sql=false sql=false
fi fi