Commit ae137bca authored by Magnus Hagander's avatar Magnus Hagander

Fix warning about unused variable

parent 504f0c5d
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment