diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2011-04-11 22:28:45 +0300 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2011-04-11 22:28:45 +0300 |
commit | 5caa3479c2efd31fca1b271db687e5e57c7de2d4 (patch) | |
tree | ad862f1b6620a5a376a67b4a320f23c212b45ef4 /src/backend/utils/adt/selfuncs.c | |
parent | 3c381a55b0fa1c4ca328211e39df8e1a715129cb (diff) | |
download | postgresql-5caa3479c2efd31fca1b271db687e5e57c7de2d4.tar.gz postgresql-5caa3479c2efd31fca1b271db687e5e57c7de2d4.zip |
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 'src/backend/utils/adt/selfuncs.c')
-rw-r--r-- | src/backend/utils/adt/selfuncs.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/backend/utils/adt/selfuncs.c b/src/backend/utils/adt/selfuncs.c index 534425a6b53..2f39093f7ff 100644 --- a/src/backend/utils/adt/selfuncs.c +++ b/src/backend/utils/adt/selfuncs.c @@ -1081,7 +1081,6 @@ patternsel(PG_FUNCTION_ARGS, Pattern_Type ptype, bool negate) List *args = (List *) PG_GETARG_POINTER(2); int varRelid = PG_GETARG_INT32(3); VariableStatData vardata; - Node *variable; Node *other; bool varonleft; Datum constval; @@ -1123,7 +1122,6 @@ patternsel(PG_FUNCTION_ARGS, Pattern_Type ptype, bool negate) ReleaseVariableStats(vardata); return result; } - variable = (Node *) linitial(args); /* * If the constant is NULL, assume operator is strict and return zero, ie, @@ -2291,7 +2289,6 @@ eqjoinsel_semi(Oid operator, double nd1; double nd2; Form_pg_statistic stats1 = NULL; - Form_pg_statistic stats2 = NULL; bool have_mcvs1 = false; Datum *values1 = NULL; int nvalues1 = 0; @@ -2321,7 +2318,6 @@ eqjoinsel_semi(Oid operator, if (HeapTupleIsValid(vardata2->statsTuple)) { - stats2 = (Form_pg_statistic) GETSTRUCT(vardata2->statsTuple); have_mcvs2 = get_attstatsslot(vardata2->statsTuple, vardata2->atttype, vardata2->atttypmod, @@ -4415,7 +4411,6 @@ get_variable_range(PlannerInfo *root, VariableStatData *vardata, Oid sortop, Datum tmin = 0; Datum tmax = 0; bool have_data = false; - Form_pg_statistic stats; int16 typLen; bool typByVal; Datum *values; @@ -4439,7 +4434,6 @@ get_variable_range(PlannerInfo *root, VariableStatData *vardata, Oid sortop, /* no stats available, so default result */ return false; } - stats = (Form_pg_statistic) GETSTRUCT(vardata->statsTuple); get_typlenbyval(vardata->atttype, &typLen, &typByVal); |