From: Peter Eisentraut Date: Mon, 4 Jul 2011 15:03:17 +0000 (+0300) Subject: Remove unused variable to silence compiler warning X-Git-Tag: REL9_2_BETA1~1459 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9f084527a48f7c9ceb995d7bc39da63ae1941a3c;p=thirdparty%2Fpostgresql.git Remove unused variable to silence compiler warning --- diff --git a/src/backend/commands/typecmds.c b/src/backend/commands/typecmds.c index 85a7585c6c9..c29f44cbf6a 100644 --- a/src/backend/commands/typecmds.c +++ b/src/backend/commands/typecmds.c @@ -2046,7 +2046,6 @@ AlterDomainValidateConstraint(List *names, char *constrName) Relation typrel; Relation conrel; HeapTuple tup; - Form_pg_type typTup; Form_pg_constraint con = NULL; Form_pg_constraint copy_con; char *conbin; @@ -2068,7 +2067,6 @@ AlterDomainValidateConstraint(List *names, char *constrName) tup = SearchSysCache1(TYPEOID, ObjectIdGetDatum(domainoid)); if (!HeapTupleIsValid(tup)) elog(ERROR, "cache lookup failed for type %u", domainoid); - typTup = (Form_pg_type) GETSTRUCT(tup); /* Check it's a domain and check user has permission for ALTER DOMAIN */ checkDomainOwner(tup);