]> granicus.if.org Git - postgresql/commitdiff
Remove unused variable
authorPeter Eisentraut <peter_e@gmx.net>
Tue, 14 Jun 2011 20:00:43 +0000 (23:00 +0300)
committerPeter Eisentraut <peter_e@gmx.net>
Tue, 14 Jun 2011 20:01:44 +0000 (23:01 +0300)
The variable became obsolete in commit
68739ba856c52e6721d6cffec21f1bf0327a9a7b, but only gcc 4.6 shows the
warning.

src/backend/parser/parse_utilcmd.c

index efb8fddbc39b4095ae91d6e0e39769135845382b..485bf4b8e7f71cd870c81013da16fc83a7949c06 100644 (file)
@@ -845,7 +845,6 @@ static void
 transformOfType(CreateStmtContext *cxt, TypeName *ofTypename)
 {
        HeapTuple       tuple;
-       Form_pg_type typ;
        TupleDesc       tupdesc;
        int                     i;
        Oid                     ofTypeId;
@@ -854,7 +853,6 @@ transformOfType(CreateStmtContext *cxt, TypeName *ofTypename)
 
        tuple = typenameType(NULL, ofTypename, NULL);
        check_of_type(tuple);
-       typ = (Form_pg_type) GETSTRUCT(tuple);
        ofTypeId = HeapTupleGetOid(tuple);
        ofTypename->typeOid = ofTypeId;         /* cached for later */