summaryrefslogtreecommitdiff
path: root/contrib/pageinspect/fsmfuncs.c
diff options
context:
space:
mode:
authorPeter Eisentraut2011-04-11 19:28:45 +0000
committerPeter Eisentraut2011-04-11 19:28:45 +0000
commit5caa3479c2efd31fca1b271db687e5e57c7de2d4 (patch)
treead862f1b6620a5a376a67b4a320f23c212b45ef4 /contrib/pageinspect/fsmfuncs.c
parent3c381a55b0fa1c4ca328211e39df8e1a715129cb (diff)
Clean up most -Wunused-but-set-variable warnings from gcc 4.6
This warning is new in gcc 4.6 and part of -Wall. This patch cleans up most of the noise, but there are some still warnings that are trickier to remove.
Diffstat (limited to 'contrib/pageinspect/fsmfuncs.c')
-rw-r--r--contrib/pageinspect/fsmfuncs.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/contrib/pageinspect/fsmfuncs.c b/contrib/pageinspect/fsmfuncs.c
index eca3230a98e..38c4e23fc2c 100644
--- a/contrib/pageinspect/fsmfuncs.c
+++ b/contrib/pageinspect/fsmfuncs.c
@@ -35,7 +35,6 @@ Datum
fsm_page_contents(PG_FUNCTION_ARGS)
{
bytea *raw_page = PG_GETARG_BYTEA_P(0);
- int raw_page_size;
StringInfoData sinfo;
FSMPage fsmpage;
int i;
@@ -45,7 +44,6 @@ fsm_page_contents(PG_FUNCTION_ARGS)
(errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
(errmsg("must be superuser to use raw page functions"))));
- raw_page_size = VARSIZE(raw_page) - VARHDRSZ;
fsmpage = (FSMPage) PageGetContents(VARDATA(raw_page));
initStringInfo(&sinfo);