agora inbox for [email protected]  
help / color / mirror / Atom feed
From: Bertrand Drouvot <[email protected]>
Subject: [PATCH v1 2/3] Remove unused variable in generate-lwlocknames.pl
Date: Fri, 18 Jul 2025 11:04:43 +0000

$continue is not used, so let's remove it.

Oversight in commit da952b415f4.
---
 src/backend/storage/lmgr/generate-lwlocknames.pl | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/backend/storage/lmgr/generate-lwlocknames.pl b/src/backend/storage/lmgr/generate-lwlocknames.pl
index 4441b7cba0c..c7a6720440d 100644
--- a/src/backend/storage/lmgr/generate-lwlocknames.pl
+++ b/src/backend/storage/lmgr/generate-lwlocknames.pl
@@ -10,7 +10,6 @@ use Getopt::Long;
 my $output_path = '.';
 
 my $lastlockidx = -1;
-my $continue = "\n";
 
 GetOptions('outdir:s' => \$output_path);
 
@@ -102,10 +101,8 @@ while (<$lwlocklist>)
 	while ($lastlockidx < $lockidx - 1)
 	{
 		++$lastlockidx;
-		$continue = ",\n";
 	}
 	$lastlockidx = $lockidx;
-	$continue = ",\n";
 
 	# Add a "Lock" suffix to each lock name, as the C code depends on that
 	printf $h "#define %-32s (&MainLWLockArray[$lockidx].lock)\n",
-- 
2.34.1


--p8uHquVDs1+pWqp8
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment;
	filename="v1-0003-Cross-check-lists-of-predefined-tranches.patch"



view thread (2+ messages)

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected]
  Subject: Re: [PATCH v1 2/3] Remove unused variable in generate-lwlocknames.pl
  In-Reply-To: <no-message-id-22116@localhost>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox