mirror of
https://github.com/postgres/postgres.git
synced 2025-06-13 07:41:39 +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:
@ -255,7 +255,6 @@ RI_FKey_check(PG_FUNCTION_ARGS)
|
||||
Relation fk_rel;
|
||||
Relation pk_rel;
|
||||
HeapTuple new_row;
|
||||
HeapTuple old_row;
|
||||
Buffer new_row_buf;
|
||||
RI_QueryKey qkey;
|
||||
SPIPlanPtr qplan;
|
||||
@ -274,13 +273,11 @@ RI_FKey_check(PG_FUNCTION_ARGS)
|
||||
|
||||
if (TRIGGER_FIRED_BY_UPDATE(trigdata->tg_event))
|
||||
{
|
||||
old_row = trigdata->tg_trigtuple;
|
||||
new_row = trigdata->tg_newtuple;
|
||||
new_row_buf = trigdata->tg_newtuplebuf;
|
||||
}
|
||||
else
|
||||
{
|
||||
old_row = NULL;
|
||||
new_row = trigdata->tg_trigtuple;
|
||||
new_row_buf = trigdata->tg_trigtuplebuf;
|
||||
}
|
||||
|
Reference in New Issue
Block a user