Skip to content

Commit

Permalink
gcc8 restrict confusion.
Browse files Browse the repository at this point in the history
Seems gcc8  does not like `restrict` token for a variable name. 
Most likely related to C99: https://gcc.gnu.org/onlinedocs/gcc/Restricted-Pointers.html
  • Loading branch information
yazun committed Feb 27, 2020
1 parent a6c961c commit 71fbf34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/utils/adt/ruleutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -12120,8 +12120,8 @@ pruning_walker(Relation rel, Node *expr)
break;
case T_RestrictInfo:
{
RestrictInfo *restrict = (RestrictInfo *)expr;
result = pruning_walker(rel, (Node *)restrict->clause);
RestrictInfo *restricted = (RestrictInfo *)expr;
result = pruning_walker(rel, (Node *)restricted->clause);
}
break;
case T_BoolExpr:
Expand Down

0 comments on commit 71fbf34

Please sign in to comment.