Remove incorrect function import from pgindent
authorDaniel Gustafsson <[email protected]>
Wed, 9 Oct 2024 07:34:34 +0000 (09:34 +0200)
committerDaniel Gustafsson <[email protected]>
Wed, 9 Oct 2024 07:34:34 +0000 (09:34 +0200)
commit79ca063de8dace1ae0bb9774ca1f0480f4bcc73f
tree4ce2c3b5a230d0d1f441489fcfc08254bba2d60d
parentd4ade0bafb7571c8268f5eae4124e71df45ca8b2
Remove incorrect function import from pgindent

Commit 149ac7d4559 which re-implemented pgindent in Perl explicitly
imported the devnull function from File::Spec, but the module does
not export anything.  In recent versions of Perl calling a missing
import function cause a warning, which combined with warnings being
fatal cause pgindent to error out.

Backpatch to all supported versions.

Author: Erik Wienhold <[email protected]>
Reviewed-by: Andrew Dunstan <[email protected]>
Reviewed-by: Daniel Gustafsson <[email protected]>
Discusson: https://postgr.es/m/2372cd74-11b0-46f9-b28e-8f9627215d19@ewie.name
Backpatch-through: v12
src/tools/pgindent/pgindent