diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2003-11-27 18:12:50 +0000 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2003-11-27 18:12:50 +0000 |
commit | c9190ef0749e7a779cd06e585deacfb2d4df074b (patch) | |
tree | c5f2bd987f74228f359ec3d5f3a69f68f0d056af | |
parent | baeab89de63ab0f74266481954ee3c0825714ff3 (diff) | |
download | postgresql-c9190ef0749e7a779cd06e585deacfb2d4df074b.tar.gz postgresql-c9190ef0749e7a779cd06e585deacfb2d4df074b.zip |
Conditionalize variable that is only used conditionally, to avoid warning.
-rw-r--r-- | src/backend/storage/buffer/freelist.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/backend/storage/buffer/freelist.c b/src/backend/storage/buffer/freelist.c index 84bcb1554d1..554d73dc9f8 100644 --- a/src/backend/storage/buffer/freelist.c +++ b/src/backend/storage/buffer/freelist.c @@ -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 */ @@ -705,7 +707,7 @@ StrategyInvalidateBuffer(BufferDesc *buf) * If we have the buffer somewhere in the directory, remove it, * add the CDB to the list of unused CDB's. and the buffer to * the list of free buffers - */ + */ cdb_id = BufTableLookup(&(buf->tag)); if (cdb_id >= 0) { |