From d3be71a208f2bd4bc529c55a23d9da44f62b0ebb Mon Sep 17 00:00:00 2001
From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: Fri, 15 Jan 2010 11:47:15 +0000
Subject: [PATCH] Remove unused (in non-assertion-enabled build) variable.

---
 src/backend/replication/walsender.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/backend/replication/walsender.c b/src/backend/replication/walsender.c
index 8a3352e0755..c028ab3dce2 100644
--- a/src/backend/replication/walsender.c
+++ b/src/backend/replication/walsender.c
@@ -30,7 +30,7 @@
  *
  *
  * IDENTIFICATION
- *	  $PostgreSQL: pgsql/src/backend/replication/walsender.c,v 1.1 2010/01/15 09:19:03 heikki Exp $
+ *	  $PostgreSQL: pgsql/src/backend/replication/walsender.c,v 1.2 2010/01/15 11:47:15 heikki Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -452,14 +452,13 @@ static void
 InitWalSnd(void)
 {
 	/* use volatile pointer to prevent code rearrangement */
-	volatile WalSndCtlData *walsndctl = WalSndCtl;
 	int		i;
 
 	/*
 	 * WalSndCtl should be set up already (we inherit this by fork() or
 	 * EXEC_BACKEND mechanism from the postmaster).
 	 */
-	Assert(walsndctl != NULL);
+	Assert(WalSndCtl != NULL);
 	Assert(MyWalSnd == NULL);
 
 	/*
-- 
GitLab