Skip to content

Commit c9190ef

Browse files
committed
Conditionalize variable that is only used conditionally, to avoid warning.
1 parent baeab89 commit c9190ef

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/backend/storage/buffer/freelist.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/freelist.c,v 1.36 2003/11/19 15:55:07 wieck Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/freelist.c,v 1.37 2003/11/27 18:12:50 petere Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -694,7 +694,9 @@ void
694694
StrategyInvalidateBuffer(BufferDesc *buf)
695695
{
696696
int cdb_id;
697+
#ifdef USE_ASSERT_CHECKING
697698
int buf_id;
699+
#endif
698700
BufferStrategyCDB *cdb;
699701

700702
/* The buffer cannot be dirty or pinned */
@@ -705,7 +707,7 @@ StrategyInvalidateBuffer(BufferDesc *buf)
705707
* If we have the buffer somewhere in the directory, remove it,
706708
* add the CDB to the list of unused CDB's. and the buffer to
707709
* the list of free buffers
708-
*/
710+
*/
709711
cdb_id = BufTableLookup(&(buf->tag));
710712
if (cdb_id >= 0)
711713
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy