mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-14 13:09:45 +02:00
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 b059d2f456
introduced the issue.
This commit is contained in:
parent
923c13520f
commit
082d9d6b57
@ -61,7 +61,7 @@ static LLVMValueRef build_EvalXFuncInt(LLVMBuilderRef b, LLVMModuleRef mod,
|
|||||||
const char *funcname,
|
const char *funcname,
|
||||||
LLVMValueRef v_state,
|
LLVMValueRef v_state,
|
||||||
ExprEvalStep *op,
|
ExprEvalStep *op,
|
||||||
int natts, LLVMValueRef v_args[]);
|
int natts, LLVMValueRef *v_args);
|
||||||
static LLVMValueRef create_LifetimeEnd(LLVMModuleRef mod);
|
static LLVMValueRef create_LifetimeEnd(LLVMModuleRef mod);
|
||||||
|
|
||||||
/* macro making it easier to call ExecEval* functions */
|
/* macro making it easier to call ExecEval* functions */
|
||||||
@ -2471,7 +2471,7 @@ BuildV1Call(LLVMJitContext *context, LLVMBuilderRef b,
|
|||||||
static LLVMValueRef
|
static LLVMValueRef
|
||||||
build_EvalXFuncInt(LLVMBuilderRef b, LLVMModuleRef mod, const char *funcname,
|
build_EvalXFuncInt(LLVMBuilderRef b, LLVMModuleRef mod, const char *funcname,
|
||||||
LLVMValueRef v_state, ExprEvalStep *op,
|
LLVMValueRef v_state, ExprEvalStep *op,
|
||||||
int nargs, LLVMValueRef v_args[])
|
int nargs, LLVMValueRef *v_args)
|
||||||
{
|
{
|
||||||
LLVMValueRef v_fn = llvm_pg_func(mod, funcname);
|
LLVMValueRef v_fn = llvm_pg_func(mod, funcname);
|
||||||
LLVMValueRef *params;
|
LLVMValueRef *params;
|
||||||
|
Loading…
Reference in New Issue
Block a user