Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5b3a2ca

Browse files
committed
Dept of second thoughts: rename new perl script.
It didn't take long at all for me to become irritated that the originalchoice of name for this script resulted in "warning" showing up in severalplaces in build logs, because I tend to grep for that. Change the scriptname to avoid that.
1 parent170511b commit5b3a2ca

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

‎src/Makefile.global.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ TAS = @TAS@
627627
ifdefFLEX
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 '$@')
631631
else
632632
@$(missing) flex $< '$@'
633633
endif

‎src/tools/fix-flex-warning.plrenamed to‎src/tools/fix-old-flex-code.pl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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
@@ -11,7 +11,7 @@
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

@@ -55,9 +55,9 @@
5555
sub 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
6161
an unused-variable warning that occurs with older flex versions.
6262
6363
Report bugs to <pgsql-bugs\@postgresql.org>.

‎src/tools/msvc/pgflex.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
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
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp