> On 10 May 2023, at 12:10, PG Bug reporting form <noreply@postgresql.org> wrote:
Thanks for your report!
> llvmjit.c:506:24: warning: returning 'int' from a function with return type
> 'LLVMValueRef' {aka 'struct LLVMOpaqueValue *'} makes pointer from integer
> without a cast [-Wint-conversion]
> 506 | return LLVMBuildLoad(builder, v_fn, "");
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This is a known problem which is currently being worked on. LLVM 16 deprecated
typed pointers which the postgres JIT implementation is using, switching over
to opaque pointers is no simple task though.
--
Daniel Gustafsson