Skip to content

Commit 7f2e10b

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 e8ce68b commit 7f2e10b

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 */
@@ -2459,7 +2459,7 @@ BuildV1Call(LLVMJitContext *context, LLVMBuilderRef b,
24592459
static LLVMValueRef
24602460
build_EvalXFuncInt(LLVMBuilderRef b, LLVMModuleRef mod, const char *funcname,
24612461
LLVMValueRef v_state, ExprEvalStep *op,
2462-
int nargs, LLVMValueRef v_args[])
2462+
int nargs, LLVMValueRef *v_args)
24632463
{
24642464
LLVMValueRef v_fn = llvm_pg_func(mod, funcname);
24652465
LLVMValueRef *params;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy