mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
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.
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user