]> git.kaiwu.me - njs.git/commit
Fixed building QuickJS support with clang 19.
authorDmitry Volyntsev <xeioex@nginx.com>
Mon, 25 Aug 2025 23:47:43 +0000 (16:47 -0700)
committerDmitry Volyntsev <xeioexception@gmail.com>
Wed, 27 Aug 2025 01:04:43 +0000 (18:04 -0700)
commit8259f9a2ee8d5c0f7ef45ccf563984a9ad95a9db
tree50fbe2af4f4eec339eeb0e024d3352637e9ed1c8
parent2c93ca079f497b68ea1680d282f705c926cf7210
Fixed building QuickJS support with clang 19.

checking for QuickJS library -lquickjs In file included from
build/autotest.c:6:
/home/xeioex/workspace/nginx/nginScript/quickjs/quickjs.h:1052:34:
error: cast from 'JSCFunctionMagic *' (aka 'struct JSValue (*)(struct
JSContext *, struct JSValue, int, struct JSValue *, int)') to
'JSCFunction *' (aka 'struct JSValue (*)(struct JSContext *, struct
JSValue, int, struct JSValue *)') converts to incompatible function type
[-Werror,-Wcast-function-type-mismatch] 1052 | return
JS_NewCFunction2(ctx, (JSCFunction *)func, name, length, cproto, magic);

-Wcast-function-type-mismatch become enabled by -Werror since
clang 19.
auto/quickjs
nginx/config
src/qjs.h