From: Andrew Dunstan Date: Wed, 29 Jan 2014 23:54:14 +0000 (-0500) Subject: Silence compiler warnings about possibly unset variables. X-Git-Tag: REL9_4_BETA1~583 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=120c5cc761e0d99a9a2f3349f4031850b0dbd5a0;p=postgresql Silence compiler warnings about possibly unset variables. They are in fact set in every case where they are needed, but the compiler doesn't know that. Per gripe from Tom Lane. --- diff --git a/src/backend/utils/adt/jsonfuncs.c b/src/backend/utils/adt/jsonfuncs.c index 16d584f190..a19b2222a2 100644 --- a/src/backend/utils/adt/jsonfuncs.c +++ b/src/backend/utils/adt/jsonfuncs.c @@ -1283,8 +1283,8 @@ populate_record_worker(PG_FUNCTION_ARGS, bool have_record_arg) bool use_json_as_text; HTAB *json_hash; HeapTupleHeader rec = NULL; - Oid tupType; - int32 tupTypmod; + Oid tupType = InvalidOid; + int32 tupTypmod = -1; TupleDesc tupdesc; HeapTupleData tuple; HeapTuple rettuple;