File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -627,7 +627,7 @@ TAS = @TAS@
627627ifdef FLEX
628628 $(FLEX) $(if $(FLEX_NO_BACKUP),-b) $(FLEXFLAGS) -o'$@' $<
629629 @$(if $(FLEX_NO_BACKUP),if [ `wc -l <lex.backup` -eq 1 ]; then rm lex.backup; else echo "Scanner requires backup; see lex.backup." 1>&2; exit 1; fi)
630- $(if $(FLEX_FIX_WARNING),$(PERL) $(top_srcdir)/src/tools/fix-flex-warning .pl '$@')
630+ $(if $(FLEX_FIX_WARNING),$(PERL) $(top_srcdir)/src/tools/fix-old- flex-code .pl '$@')
631631else
632632 @$(missing) flex $< '$@'
633633endif
Original file line number Diff line number Diff line change 11# !/usr/bin/perl -w
22# ----------------------------------------------------------------------
33#
4- # fix-flex-warning .pl
4+ # fix-old- flex-code .pl
55#
66# flex versions before 2.5.36, with certain option combinations, produce
77# code that causes an "unused variable" warning. That's annoying, so
1111# Portions Copyright (c) 1996-2017, PostgreSQL Global Development Group
1212# Portions Copyright (c) 1994, Regents of the University of California
1313#
14- # src/tools/fix-flex-warning .pl
14+ # src/tools/fix-old- flex-code .pl
1515#
1616# ----------------------------------------------------------------------
1717
5555sub usage
5656{
5757 die <<EOM;
58- Usage: fix-flex-warning .pl c-file-name
58+ Usage: fix-old- flex-code .pl c-file-name
5959
60- fix-flex-warning .pl modifies a flex output file to suppress
60+ fix-old- flex-code .pl modifies a flex output file to suppress
6161an unused-variable warning that occurs with older flex versions.
6262
6363Report bugs to <pgsql-bugs\@ postgresql.org>.
Original file line number Diff line number Diff line change 6060 {
6161 # Reentrant scanners usually need a fix to prevent
6262 # "unused variable" warnings with older flex versions.
63- system (" perl src\\ tools\\ fix-flex-warning .pl $output " );
63+ system (" perl src\\ tools\\ fix-old- flex-code .pl $output " );
6464 }
6565 else
6666 {
You can’t perform that action at this time.
0 commit comments