Standardize order of use strict and use warnings in Perl code

The standard order in PostgreSQL and other code is use strict first,
but some code was uselessly inconsistent about this.
This commit is contained in:
Peter Eisentraut 2020-09-21 15:22:41 +02:00
parent c47a240fe6
commit 80fc96eceb
7 changed files with 7 additions and 7 deletions

View File

@ -3,8 +3,8 @@
# Generate the errcodes-table.sgml file from errcodes.txt
# Copyright (c) 2000-2020, PostgreSQL Global Development Group
use warnings;
use strict;
use warnings;
print
"<!-- autogenerated from src/backend/utils/errcodes.txt, do not edit -->\n";

View File

@ -6,8 +6,8 @@
# src/backend/parser/check_keywords.pl
# Copyright (c) 2009-2020, PostgreSQL Global Development Group
use warnings;
use strict;
use warnings;
my $gram_filename = $ARGV[0];
my $kwlist_filename = $ARGV[1];

View File

@ -3,8 +3,8 @@
# Generate lwlocknames.h and lwlocknames.c from lwlocknames.txt
# Copyright (c) 2000-2020, PostgreSQL Global Development Group
use warnings;
use strict;
use warnings;
my $lastlockidx = -1;
my $continue = "\n";

View File

@ -3,8 +3,8 @@
# Generate the errcodes.h header from errcodes.txt
# Copyright (c) 2000-2020, PostgreSQL Global Development Group
use warnings;
use strict;
use warnings;
print
"/* autogenerated from src/backend/utils/errcodes.txt, do not edit */\n";

View File

@ -3,8 +3,8 @@
# Generate the plerrcodes.h header from errcodes.txt
# Copyright (c) 2000-2020, PostgreSQL Global Development Group
use warnings;
use strict;
use warnings;
print
"/* autogenerated from src/backend/utils/errcodes.txt, do not edit */\n";

View File

@ -3,8 +3,8 @@
# Generate the spiexceptions.h header from errcodes.txt
# Copyright (c) 2000-2020, PostgreSQL Global Development Group
use warnings;
use strict;
use warnings;
print
"/* autogenerated from src/backend/utils/errcodes.txt, do not edit */\n";

View File

@ -3,8 +3,8 @@
# Generate the pltclerrcodes.h header from errcodes.txt
# Copyright (c) 2000-2020, PostgreSQL Global Development Group
use warnings;
use strict;
use warnings;
print
"/* autogenerated from src/backend/utils/errcodes.txt, do not edit */\n";