]> granicus.if.org Git - postgresql/commitdiff
Fix warning about unused variable
authorMagnus Hagander <magnus@hagander.net>
Wed, 18 Jan 2012 09:22:54 +0000 (10:22 +0100)
committerMagnus Hagander <magnus@hagander.net>
Wed, 18 Jan 2012 09:24:15 +0000 (10:24 +0100)
src/backend/commands/view.c

index c3520ae03c677b323e2a9cb4821a082f2bbff21d..f895488a5a5715ad5962adc44781a9768a3f918c 100644 (file)
@@ -102,7 +102,6 @@ DefineVirtualRelation(RangeVar *relation, List *tlist, bool replace,
                                          List *options)
 {
        Oid                     viewOid;
-       Oid                     namespaceId;
        LOCKMODE        lockmode;
        CreateStmt *createStmt = makeNode(CreateStmt);
        List       *attrList;
@@ -167,8 +166,7 @@ DefineVirtualRelation(RangeVar *relation, List *tlist, bool replace,
         * namespace is temporary.
         */
        lockmode = replace ? AccessExclusiveLock : NoLock;
-       namespaceId =
-               RangeVarGetAndCheckCreationNamespace(relation, lockmode, &viewOid);
+       (void) RangeVarGetAndCheckCreationNamespace(relation, lockmode, &viewOid);
 
        if (OidIsValid(viewOid) && replace)
        {