Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 082d9d6

Browse files
committed
jit: Fix warning reported by gcc-11 caused by dubious function signature.
Reported-By: Erik Rijkers <er@xs4all.nl> Discussion: https://postgr.es/m/833107370.1313189.1619647621213@webmailclassic.xs4all.nl Backpatch: 13, where b059d2f introduced the issue.
1 parent 923c135 commit 082d9d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/jit/llvm/llvmjit_expr.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ static LLVMValueRef build_EvalXFuncInt(LLVMBuilderRef b, LLVMModuleRef mod,
6161
const char *funcname,
6262
LLVMValueRef v_state,
6363
ExprEvalStep *op,
64-
int natts, LLVMValueRef v_args[]);
64+
int natts, LLVMValueRef *v_args);
6565
static LLVMValueRef create_LifetimeEnd(LLVMModuleRef mod);
6666

6767
/* macro making it easier to call ExecEval* functions */
@@ -2471,7 +2471,7 @@ BuildV1Call(LLVMJitContext *context, LLVMBuilderRef b,
24712471
static LLVMValueRef
24722472
build_EvalXFuncInt(LLVMBuilderRef b, LLVMModuleRef mod, const char *funcname,
24732473
LLVMValueRef v_state, ExprEvalStep *op,
2474-
int nargs, LLVMValueRef v_args[])
2474+
int nargs, LLVMValueRef *v_args)
24752475
{
24762476
LLVMValueRef v_fn = llvm_pg_func(mod, funcname);
24772477
LLVMValueRef *params;

0 commit comments

Comments
 (0)