mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-02-23 19:39:53 +08:00
Conditionalize variable that is only used conditionally, to avoid warning.
This commit is contained in:
parent
baeab89de6
commit
c9190ef074
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/freelist.c,v 1.36 2003/11/19 15:55:07 wieck Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/freelist.c,v 1.37 2003/11/27 18:12:50 petere Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -694,7 +694,9 @@ void
|
||||
StrategyInvalidateBuffer(BufferDesc *buf)
|
||||
{
|
||||
int cdb_id;
|
||||
#ifdef USE_ASSERT_CHECKING
|
||||
int buf_id;
|
||||
#endif
|
||||
BufferStrategyCDB *cdb;
|
||||
|
||||
/* The buffer cannot be dirty or pinned */
|
||||
|
Loading…
Reference in New Issue
Block a user