From c026dfc99447f7c58ff6e6301fa5550126abcf7a Mon Sep 17 00:00:00 2001 From: Tomas Vondra Date: Thu, 6 Jul 2017 19:21:30 +0200 Subject: Change type to (Node *) to fix compiler warning get_object_address() expects the second parameter to be (Node *) but we've been passing (List *), so that compilers were complaining. Just change the type to fix this. --- src/backend/tcop/utility.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c index ada57ac500..a25498874a 100644 --- a/src/backend/tcop/utility.c +++ b/src/backend/tcop/utility.c @@ -4899,7 +4899,7 @@ DropStmtPreTreatment(DropStmt *stmt, const char *queryString, bool sentToRemote, * which the rule is dependent and define if this rule * has a dependency with a temporary object or not. */ - List *objname = linitial(stmt->objects); + Node *objname = linitial(stmt->objects); Relation relation = NULL; get_object_address(OBJECT_RULE, -- cgit v1.2.3