Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Clang] warning: -Wdeprecated-non-prototype #226

Closed
kovmir opened this issue Dec 19, 2023 · 1 comment
Closed

[Clang] warning: -Wdeprecated-non-prototype #226

kovmir opened this issue Dec 19, 2023 · 1 comment

Comments

@kovmir
Copy link

kovmir commented Dec 19, 2023

libpg_query tag: 15-4.2.3
clang version: 17.0.6
To reproduce: make CC=clang

src/postgres/src_backend_nodes_nodeFuncs.c:925:17: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
  925 |                         return walker(((RangeVar *) node)->alias, context);
      |                                      ^
src/postgres/src_backend_nodes_nodeFuncs.c:927:17: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
  927 |                         return walker(((GroupingFunc *) node)->args, context);
      |                                      ^
src/postgres/src_backend_nodes_nodeFuncs.c:932:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
  932 |                                 if (walker(sublink->testexpr, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:935:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
  935 |                                 if (walker(sublink->subselect, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:943:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
  943 |                                 if (walker(caseexpr->arg, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:950:16: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
  950 |                                         if (walker(when->expr, context))
      |                                                   ^
src/postgres/src_backend_nodes_nodeFuncs.c:952:16: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
  952 |                                         if (walker(when->result, context))
      |                                                   ^
src/postgres/src_backend_nodes_nodeFuncs.c:955:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
  955 |                                 if (walker(caseexpr->defresult, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:961:17: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
  961 |                         return walker(((RowExpr *) node)->args, context);
      |                                      ^
src/postgres/src_backend_nodes_nodeFuncs.c:963:17: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
  963 |                         return walker(((CoalesceExpr *) node)->args, context);
      |                                      ^
src/postgres/src_backend_nodes_nodeFuncs.c:965:17: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
  965 |                         return walker(((MinMaxExpr *) node)->args, context);
      |                                      ^
src/postgres/src_backend_nodes_nodeFuncs.c:970:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
  970 |                                 if (walker(xexpr->named_args, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:973:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
  973 |                                 if (walker(xexpr->args, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:978:17: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
  978 |                         return walker(((NullTest *) node)->arg, context);
      |                                      ^
src/postgres/src_backend_nodes_nodeFuncs.c:980:17: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
  980 |                         return walker(((BooleanTest *) node)->arg, context);
      |                                      ^
src/postgres/src_backend_nodes_nodeFuncs.c:985:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
  985 |                                 if (walker(join->larg, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:987:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
  987 |                                 if (walker(join->rarg, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:989:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
  989 |                                 if (walker(join->quals, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:991:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
  991 |                                 if (walker(join->alias, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1000:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1000 |                                 if (walker(into->rel, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1004:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1004 |                                 if (walker(into->viewQuery, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1011:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1011 |                                 if (walker((Node *) lfirst(temp), context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1019:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1019 |                                 if (walker(stmt->relation, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1021:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1021 |                                 if (walker(stmt->cols, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1023:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1023 |                                 if (walker(stmt->selectStmt, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1025:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1025 |                                 if (walker(stmt->onConflictClause, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1027:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1027 |                                 if (walker(stmt->returningList, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1029:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1029 |                                 if (walker(stmt->withClause, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1037:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1037 |                                 if (walker(stmt->relation, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1039:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1039 |                                 if (walker(stmt->usingClause, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1041:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1041 |                                 if (walker(stmt->whereClause, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1043:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1043 |                                 if (walker(stmt->returningList, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1045:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1045 |                                 if (walker(stmt->withClause, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1053:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1053 |                                 if (walker(stmt->relation, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1055:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1055 |                                 if (walker(stmt->targetList, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1057:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1057 |                                 if (walker(stmt->whereClause, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1059:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1059 |                                 if (walker(stmt->fromClause, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1061:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1061 |                                 if (walker(stmt->returningList, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1063:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1063 |                                 if (walker(stmt->withClause, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1071:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1071 |                                 if (walker(stmt->relation, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1073:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1073 |                                 if (walker(stmt->sourceRelation, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1075:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1075 |                                 if (walker(stmt->joinCondition, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1077:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1077 |                                 if (walker(stmt->mergeWhenClauses, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1079:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1079 |                                 if (walker(stmt->withClause, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1087:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1087 |                                 if (walker(mergeWhenClause->condition, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1089:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1089 |                                 if (walker(mergeWhenClause->targetList, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1091:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1091 |                                 if (walker(mergeWhenClause->values, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1099:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1099 |                                 if (walker(stmt->distinctClause, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1101:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1101 |                                 if (walker(stmt->intoClause, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1103:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1103 |                                 if (walker(stmt->targetList, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1105:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1105 |                                 if (walker(stmt->fromClause, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1107:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1107 |                                 if (walker(stmt->whereClause, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1109:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1109 |                                 if (walker(stmt->groupClause, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1111:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1111 |                                 if (walker(stmt->havingClause, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1113:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1113 |                                 if (walker(stmt->windowClause, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1115:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1115 |                                 if (walker(stmt->valuesLists, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1117:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1117 |                                 if (walker(stmt->sortClause, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1119:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1119 |                                 if (walker(stmt->limitOffset, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1121:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1121 |                                 if (walker(stmt->limitCount, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1123:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1123 |                                 if (walker(stmt->lockingClause, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1125:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1125 |                                 if (walker(stmt->withClause, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1127:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1127 |                                 if (walker(stmt->larg, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1129:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1129 |                                 if (walker(stmt->rarg, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1137:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1137 |                                 if (walker(stmt->indirection, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1139:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1139 |                                 if (walker(stmt->val, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1147:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1147 |                                 if (walker(expr->lexpr, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1149:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1149 |                                 if (walker(expr->rexpr, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1158:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1158 |                                 if (walker(expr->args, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1169:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1169 |                                 if (walker(fcall->args, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1171:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1171 |                                 if (walker(fcall->agg_order, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1173:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1173 |                                 if (walker(fcall->agg_filter, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1175:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1175 |                                 if (walker(fcall->over, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1181:17: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1181 |                         return walker(((NamedArgExpr *) node)->arg, context);
      |                                      ^
src/postgres/src_backend_nodes_nodeFuncs.c:1186:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1186 |                                 if (walker(indices->lidx, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1188:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1188 |                                 if (walker(indices->uidx, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1196:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1196 |                                 if (walker(indir->arg, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1198:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1198 |                                 if (walker(indir->indirection, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1203:17: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1203 |                         return walker(((A_ArrayExpr *) node)->elements, context);
      |                                      ^
src/postgres/src_backend_nodes_nodeFuncs.c:1208:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1208 |                                 if (walker(rt->indirection, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1210:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1210 |                                 if (walker(rt->val, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1215:17: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1215 |                         return walker(((MultiAssignRef *) node)->source, context);
      |                                      ^
src/postgres/src_backend_nodes_nodeFuncs.c:1220:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1220 |                                 if (walker(tc->arg, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1222:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1222 |                                 if (walker(tc->typeName, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1227:17: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1227 |                         return walker(((CollateClause *) node)->arg, context);
      |                                      ^
src/postgres/src_backend_nodes_nodeFuncs.c:1229:17: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1229 |                         return walker(((SortBy *) node)->node, context);
      |                                      ^
src/postgres/src_backend_nodes_nodeFuncs.c:1234:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1234 |                                 if (walker(wd->partitionClause, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1236:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1236 |                                 if (walker(wd->orderClause, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1238:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1238 |                                 if (walker(wd->startOffset, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1240:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1240 |                                 if (walker(wd->endOffset, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1248:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1248 |                                 if (walker(rs->subquery, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1250:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1250 |                                 if (walker(rs->alias, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1258:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1258 |                                 if (walker(rf->functions, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1260:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1260 |                                 if (walker(rf->alias, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1262:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1262 |                                 if (walker(rf->coldeflist, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1270:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1270 |                                 if (walker(rts->relation, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1273:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1273 |                                 if (walker(rts->args, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1275:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1275 |                                 if (walker(rts->repeatable, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1283:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1283 |                                 if (walker(rtf->docexpr, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1285:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1285 |                                 if (walker(rtf->rowexpr, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1287:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1287 |                                 if (walker(rtf->namespaces, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1289:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1289 |                                 if (walker(rtf->columns, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1291:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1291 |                                 if (walker(rtf->alias, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1299:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1299 |                                 if (walker(rtfc->colexpr, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1301:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1301 |                                 if (walker(rtfc->coldefexpr, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1309:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1309 |                                 if (walker(tn->typmods, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1311:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1311 |                                 if (walker(tn->arrayBounds, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1320:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1320 |                                 if (walker(coldef->typeName, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1322:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1322 |                                 if (walker(coldef->compression, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1324:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1324 |                                 if (walker(coldef->raw_default, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1326:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1326 |                                 if (walker(coldef->collClause, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1335:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1335 |                                 if (walker(indelem->expr, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1341:17: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1341 |                         return walker(((GroupingSet *) node)->content, context);
      |                                      ^
src/postgres/src_backend_nodes_nodeFuncs.c:1343:17: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1343 |                         return walker(((LockingClause *) node)->lockedRels, context);
      |                                      ^
src/postgres/src_backend_nodes_nodeFuncs.c:1348:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1348 |                                 if (walker(xs->expr, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1350:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1350 |                                 if (walker(xs->typeName, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1355:17: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1355 |                         return walker(((WithClause *) node)->ctes, context);
      |                                      ^
src/postgres/src_backend_nodes_nodeFuncs.c:1360:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1360 |                                 if (walker(stmt->indexElems, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1362:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1362 |                                 if (walker(stmt->whereClause, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1370:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1370 |                                 if (walker(stmt->infer, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1372:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1372 |                                 if (walker(stmt->targetList, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1374:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1374 |                                 if (walker(stmt->whereClause, context))
      |                                           ^
src/postgres/src_backend_nodes_nodeFuncs.c:1380:17: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
 1380 |                         return walker(((CommonTableExpr *) node)->ctequery, context);
      |                                      ^
122 warnings generated.
ar: creating libpg_query.a
@lfittl
Copy link
Member

lfittl commented Dec 20, 2023

Thanks for the report!

This won't be fixed on 15-latest, since upstream elected to only apply the relevant fixes to Postgres 16 and newer: https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=dcd7dbed50085eed92ff9733dca54e0fe5518c78

You should no longer see these warnings on the PR that we have open for Postgres 16 support, which will soon become the default: #225

@kovmir kovmir closed this as completed Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants