mirror of
https://github.com/postgres/postgres.git
synced 2025-06-16 06:01:02 +03:00
Remove unnecessary casts of makeNode() result
makeNode() is already a macro that has the right result pointer type, so casting it again to the same type is unnecessary.
This commit is contained in:
@ -12743,7 +12743,7 @@ transformPartitionSpec(Relation rel, PartitionSpec *partspec, char *strategy)
|
||||
RangeTblEntry *rte;
|
||||
ListCell *l;
|
||||
|
||||
newspec = (PartitionSpec *) makeNode(PartitionSpec);
|
||||
newspec = makeNode(PartitionSpec);
|
||||
|
||||
newspec->strategy = partspec->strategy;
|
||||
newspec->location = partspec->location;
|
||||
|
Reference in New Issue
Block a user