* installing *source* package ‘QuickJSR’ ...
** this is package ‘QuickJSR’ version ‘1.11.0’
** package ‘QuickJSR’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
using C compiler: ‘Apple clang version 14.0.3 (clang-1403.0.22.14.1)’
using C++ compiler: ‘Apple clang version 14.0.3 (clang-1403.0.22.14.1)’
using SDK: ‘MacOSX11.3.1.sdk’
clang -arch x86_64 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I"include" -I"quickjs" -D_GNU_SOURCE -I/opt/R/x86_64/include -fPIC -falign-functions=64 -Wall -g -O2 -funsigned-char -std=gnu11 -c libquickjs.c
libquickjs.c:215:9: warning: 'stdout' macro redefined [-Wmacro-redefined]
#define stdout stdout_dummy
^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/stdio.h:128:9: note: previous definition is here
#define stdout __stdoutp
^
libquickjs.c:216:9: warning: 'stderr' macro redefined [-Wmacro-redefined]
#define stderr stderr_dummy
^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/stdio.h:129:9: note: previous definition is here
#define stderr __stderrp
^
In file included from libquickjs.c:240:
In file included from ./quickjs/dtoa.c:35:
quickjs/cutils.h:493:19: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
static inline int JS_PRINTF_FORMAT_ATTR(2, 3) dbuf_printf(DynBuf *s, JS_PRINTF_FORMAT const char *fmt, ...);
^
quickjs/cutils.h:125:18: note: expanded from macro 'JS_PRINTF_FORMAT_ATTR'
__attribute__((format(printf, format_param, dots_param)))
^
quickjs/cutils.h:841:19: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
static inline int JS_PRINTF_FORMAT_ATTR(2, 3) dbuf_printf(DynBuf *s, JS_PRINTF_FORMAT const char *fmt, ...)
^
quickjs/cutils.h:125:18: note: expanded from macro 'JS_PRINTF_FORMAT_ATTR'
__attribute__((format(printf, format_param, dots_param)))
^
In file included from libquickjs.c:241:
./quickjs/libregexp.c:692:12: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
static int JS_PRINTF_FORMAT_ATTR(2, 3) re_parse_error(REParseState *s, JS_PRINTF_FORMAT const char *fmt, ...)
^
quickjs/cutils.h:125:18: note: expanded from macro 'JS_PRINTF_FORMAT_ATTR'
__attribute__((format(printf, format_param, dots_param)))
^
In file included from libquickjs.c:243:
In file included from ./quickjs/quickjs.c:47:
quickjs/quickjs.h:850:19: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
JS_EXTERN JSValue JS_PRINTF_FORMAT_ATTR(2, 3) JS_NewInternalError(JSContext *ctx, JS_PRINTF_FORMAT const char *fmt, ...);
^
quickjs/cutils.h:125:18: note: expanded from macro 'JS_PRINTF_FORMAT_ATTR'
__attribute__((format(printf, format_param, dots_param)))
^
In file included from libquickjs.c:243:
In file included from ./quickjs/quickjs.c:47:
quickjs/quickjs.h:851:19: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
JS_EXTERN JSValue JS_PRINTF_FORMAT_ATTR(2, 3) JS_NewPlainError(JSContext *ctx, JS_PRINTF_FORMAT const char *fmt, ...);
^
quickjs/cutils.h:125:18: note: expanded from macro 'JS_PRINTF_FORMAT_ATTR'
__attribute__((format(printf, format_param, dots_param)))
^
In file included from libquickjs.c:243:
In file included from ./quickjs/quickjs.c:47:
quickjs/quickjs.h:852:19: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
JS_EXTERN JSValue JS_PRINTF_FORMAT_ATTR(2, 3) JS_NewRangeError(JSContext *ctx, JS_PRINTF_FORMAT const char *fmt, ...);
^
quickjs/cutils.h:125:18: note: expanded from macro 'JS_PRINTF_FORMAT_ATTR'
__attribute__((format(printf, format_param, dots_param)))
^
In file included from libquickjs.c:243:
In file included from ./quickjs/quickjs.c:47:
quickjs/quickjs.h:853:19: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
JS_EXTERN JSValue JS_PRINTF_FORMAT_ATTR(2, 3) JS_NewReferenceError(JSContext *ctx, JS_PRINTF_FORMAT const char *fmt, ...);
^
quickjs/cutils.h:125:18: note: expanded from macro 'JS_PRINTF_FORMAT_ATTR'
__attribute__((format(printf, format_param, dots_param)))
^
In file included from libquickjs.c:243:
In file included from ./quickjs/quickjs.c:47:
quickjs/quickjs.h:854:19: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
JS_EXTERN JSValue JS_PRINTF_FORMAT_ATTR(2, 3) JS_NewSyntaxError(JSContext *ctx, JS_PRINTF_FORMAT const char *fmt, ...);
^
quickjs/cutils.h:125:18: note: expanded from macro 'JS_PRINTF_FORMAT_ATTR'
__attribute__((format(printf, format_param, dots_param)))
^
In file included from libquickjs.c:243:
In file included from ./quickjs/quickjs.c:47:
quickjs/quickjs.h:855:19: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
JS_EXTERN JSValue JS_PRINTF_FORMAT_ATTR(2, 3) JS_NewTypeError(JSContext *ctx, JS_PRINTF_FORMAT const char *fmt, ...);
^
quickjs/cutils.h:125:18: note: expanded from macro 'JS_PRINTF_FORMAT_ATTR'
__attribute__((format(printf, format_param, dots_param)))
^
In file included from libquickjs.c:243:
In file included from ./quickjs/quickjs.c:47:
quickjs/quickjs.h:856:19: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
JS_EXTERN JSValue JS_PRINTF_FORMAT_ATTR(2, 3) JS_ThrowInternalError(JSContext *ctx, JS_PRINTF_FORMAT const char *fmt, ...);
^
quickjs/cutils.h:125:18: note: expanded from macro 'JS_PRINTF_FORMAT_ATTR'
__attribute__((format(printf, format_param, dots_param)))
^
In file included from libquickjs.c:243:
In file included from ./quickjs/quickjs.c:47:
quickjs/quickjs.h:857:19: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
JS_EXTERN JSValue JS_PRINTF_FORMAT_ATTR(2, 3) JS_ThrowPlainError(JSContext *ctx, JS_PRINTF_FORMAT const char *fmt, ...);
^
quickjs/cutils.h:125:18: note: expanded from macro 'JS_PRINTF_FORMAT_ATTR'
__attribute__((format(printf, format_param, dots_param)))
^
In file included from libquickjs.c:243:
In file included from ./quickjs/quickjs.c:47:
quickjs/quickjs.h:858:19: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
JS_EXTERN JSValue JS_PRINTF_FORMAT_ATTR(2, 3) JS_ThrowRangeError(JSContext *ctx, JS_PRINTF_FORMAT const char *fmt, ...);
^
quickjs/cutils.h:125:18: note: expanded from macro 'JS_PRINTF_FORMAT_ATTR'
__attribute__((format(printf, format_param, dots_param)))
^
In file included from libquickjs.c:243:
In file included from ./quickjs/quickjs.c:47:
quickjs/quickjs.h:859:19: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
JS_EXTERN JSValue JS_PRINTF_FORMAT_ATTR(2, 3) JS_ThrowReferenceError(JSContext *ctx, JS_PRINTF_FORMAT const char *fmt, ...);
^
quickjs/cutils.h:125:18: note: expanded from macro 'JS_PRINTF_FORMAT_ATTR'
__attribute__((format(printf, format_param, dots_param)))
^
In file included from libquickjs.c:243:
In file included from ./quickjs/quickjs.c:47:
quickjs/quickjs.h:860:19: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
JS_EXTERN JSValue JS_PRINTF_FORMAT_ATTR(2, 3) JS_ThrowSyntaxError(JSContext *ctx, JS_PRINTF_FORMAT const char *fmt, ...);
^
quickjs/cutils.h:125:18: note: expanded from macro 'JS_PRINTF_FORMAT_ATTR'
__attribute__((format(printf, format_param, dots_param)))
^
In file included from libquickjs.c:243:
In file included from ./quickjs/quickjs.c:47:
quickjs/quickjs.h:861:19: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
JS_EXTERN JSValue JS_PRINTF_FORMAT_ATTR(2, 3) JS_ThrowTypeError(JSContext *ctx, JS_PRINTF_FORMAT const char *fmt, ...);
^
quickjs/cutils.h:125:18: note: expanded from macro 'JS_PRINTF_FORMAT_ATTR'
__attribute__((format(printf, format_param, dots_param)))
^
In file included from libquickjs.c:243:
In file included from ./quickjs/quickjs.c:47:
quickjs/quickjs.h:862:19: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
JS_EXTERN JSValue JS_PRINTF_FORMAT_ATTR(3, 4) JS_ThrowDOMException(JSContext *ctx, const char *name, JS_PRINTF_FORMAT const char *fmt, ...);
^
quickjs/cutils.h:125:18: note: expanded from macro 'JS_PRINTF_FORMAT_ATTR'
__attribute__((format(printf, format_param, dots_param)))
^
In file included from libquickjs.c:243:
./quickjs/quickjs.c:7234:17: warning: variable 's' set but not used [-Wunused-but-set-variable]
JSMapState *s;
^
./quickjs/quickjs.c:8423:16: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
static JSValue JS_PRINTF_FORMAT_ATTR(4, 0)
^
quickjs/cutils.h:125:18: note: expanded from macro 'JS_PRINTF_FORMAT_ATTR'
__attribute__((format(printf, format_param, dots_param)))
^
In file included from libquickjs.c:243:
./quickjs/quickjs.c:8434:16: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
static JSValue JS_PRINTF_FORMAT_ATTR(4, 0)
^
quickjs/cutils.h:125:18: note: expanded from macro 'JS_PRINTF_FORMAT_ATTR'
__attribute__((format(printf, format_param, dots_param)))
^
In file included from libquickjs.c:243:
./quickjs/quickjs.c:8448:16: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
static JSValue JS_PRINTF_FORMAT_ATTR(3, 0)
^
quickjs/cutils.h:125:18: note: expanded from macro 'JS_PRINTF_FORMAT_ATTR'
__attribute__((format(printf, format_param, dots_param)))
^
In file included from libquickjs.c:243:
./quickjs/quickjs.c:8498:14: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
JS_ERROR_MAP(X)
^
./quickjs/quickjs.c:8498:14: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
./quickjs/quickjs.c:8498:14: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
./quickjs/quickjs.c:8498:14: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
./quickjs/quickjs.c:8498:14: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
./quickjs/quickjs.c:8498:14: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
./quickjs/quickjs.c:8498:14: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
./quickjs/quickjs.c:8498:14: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
./quickjs/quickjs.c:8498:14: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
./quickjs/quickjs.c:8498:14: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
./quickjs/quickjs.c:8498:14: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
./quickjs/quickjs.c:8498:14: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
./quickjs/quickjs.c:8503:12: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
static int JS_PRINTF_FORMAT_ATTR(3, 4) JS_ThrowTypeErrorOrFalse(JSContext *ctx, int flags, JS_PRINTF_FORMAT const char *fmt, ...)
^
quickjs/cutils.h:125:18: note: expanded from macro 'JS_PRINTF_FORMAT_ATTR'
__attribute__((format(printf, format_param, dots_param)))
^
In file included from libquickjs.c:243:
./quickjs/quickjs.c:9477:10: warning: variable 'atom1_is_integer' set but not used [-Wunused-but-set-variable]
bool atom1_is_integer, atom2_is_integer;
^
./quickjs/quickjs.c:9477:28: warning: variable 'atom2_is_integer' set but not used [-Wunused-but-set-variable]
bool atom1_is_integer, atom2_is_integer;
^
./quickjs/quickjs.c:13914:5: warning: variable 'val' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
default:
^~~~~~~
./quickjs/quickjs.c:13923:12: note: uninitialized use occurs here
return val;
^~~
./quickjs/quickjs.c:13762:5: note: variable 'val' is declared here
JSValue val;
^
./quickjs/quickjs.c:14043:5: warning: variable 'd' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
default:
^~~~~~~
./quickjs/quickjs.c:14046:13: note: uninitialized use occurs here
*pres = d;
^
./quickjs/quickjs.c:14029:13: note: initialize the variable 'd' to silence this warning
double d;
^
= 0.0
./quickjs/quickjs.c:15279:13: warning: variable 'r' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
default:
^~~~~~~
./quickjs/quickjs.c:15283:18: note: uninitialized use occurs here
if (!r)
^
./quickjs/quickjs.c:15256:24: note: initialize the variable 'r' to silence this warning
JSBigInt *r;
^
= NULL
./quickjs/quickjs.c:15545:9: warning: variable 'dr' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
default:
^~~~~~~
./quickjs/quickjs.c:15549:29: note: uninitialized use occurs here
sp[-2] = js_float64(dr);
^~
./quickjs/quickjs.c:15519:18: note: initialize the variable 'dr' to silence this warning
double dr;
^
= 0.0
./quickjs/quickjs.c:15510:9: warning: variable 'r' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
default:
^~~~~~~
./quickjs/quickjs.c:15515:14: note: uninitialized use occurs here
if (!r)
^
./quickjs/quickjs.c:15479:30: note: initialize the variable 'r' to silence this warning
JSBigInt *p1, *p2, *r;
^
= NULL
./quickjs/quickjs.c:15473:9: warning: variable 'v' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
default:
^~~~~~~
./quickjs/quickjs.c:15476:27: note: uninitialized use occurs here
sp[-2] = js_int64(v);
^
./quickjs/quickjs.c:15439:18: note: initialize the variable 'v' to silence this warning
int64_t v;
^
= 0
./quickjs/quickjs.c:15411:9: warning: variable 'v' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
default:
^~~~~~~
./quickjs/quickjs.c:15414:20: note: uninitialized use occurs here
if (likely(v >= JS_SHORT_BIG_INT_MIN && v <= JS_SHORT_BIG_INT_MAX)) {
^
quickjs/cutils.h:85:47: note: expanded from macro 'likely'
# define likely(x) __builtin_expect(!!(x), 1)
^
./quickjs/quickjs.c:15383:22: note: initialize the variable 'v' to silence this warning
js_sdlimb_t v;
^
= 0
./quickjs/quickjs.c:15830:9: warning: variable 'r' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
default:
^~~~~~~
./quickjs/quickjs.c:15833:27: note: uninitialized use occurs here
sp[-2] = js_int32(r);
^
./quickjs/quickjs.c:15682:23: note: initialize the variable 'r' to silence this warning
uint32_t v1, v2, r;
^
= 0
./quickjs/quickjs.c:15799:9: warning: variable 'r' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
default:
^~~~~~~
./quickjs/quickjs.c:15804:14: note: uninitialized use occurs here
if (!r)
^
./quickjs/quickjs.c:15760:30: note: initialize the variable 'r' to silence this warning
JSBigInt *p1, *p2, *r;
^
= NULL
./quickjs/quickjs.c:15739:9: warning: variable 'v' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
default:
^~~~~~~
./quickjs/quickjs.c:15742:43: note: uninitialized use occurs here
sp[-2] = __JS_NewShortBigInt(ctx, v);
^
./quickjs/quickjs.c:15690:29: note: initialize the variable 'v' to silence this warning
js_slimb_t v1, v2, v;
^
= 0
./quickjs/quickjs.c:15858:5: warning: variable 'p1' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
default:
^~~~~~~
./quickjs/quickjs.c:15861:12: note: uninitialized use occurs here
return p1;
^~
./quickjs/quickjs.c:15846:17: note: initialize the variable 'p1' to silence this warning
JSBigInt *p1;
^
= NULL
./quickjs/quickjs.c:15929:5: warning: variable 'res' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
default:
^~~~~~~
./quickjs/quickjs.c:15932:12: note: uninitialized use occurs here
return res;
^~~
./quickjs/quickjs.c:15869:12: note: initialize the variable 'res' to silence this warning
int res, val, tag1, tag2;
^
= 0
./quickjs/quickjs.c:17593:13: warning: variable 'var_ref' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
default:
^~~~~~~
./quickjs/quickjs.c:17596:18: note: uninitialized use occurs here
if (!var_ref)
^~~~~~~
./quickjs/quickjs.c:17578:30: note: initialize the variable 'var_ref' to silence this warning
JSVarRef *var_ref;
^
= NULL
./quickjs/quickjs.c:22539:5: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
int JS_PRINTF_FORMAT_ATTR(2, 3) js_parse_error(JSParseState *s, JS_PRINTF_FORMAT const char *fmt, ...)
^
quickjs/cutils.h:125:18: note: expanded from macro 'JS_PRINTF_FORMAT_ATTR'
__attribute__((format(printf, format_param, dots_param)))
^
In file included from libquickjs.c:243:
./quickjs/quickjs.c:26499:5: warning: variable 'var_def_type' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
default:
^~~~~~~
./quickjs/quickjs.c:26502:33: note: uninitialized use occurs here
if (define_var(s, fd, name, var_def_type) < 0)
^~~~~~~~~~~~
./quickjs/quickjs.c:26462:5: note: variable 'var_def_type' is declared here
JSVarDefEnum var_def_type;
^
./quickjs/quickjs.c:40661:5: warning: variable 'val' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
default:
^~~~~~~
./quickjs/quickjs.c:40664:12: note: uninitialized use occurs here
return val;
^~~
./quickjs/quickjs.c:40642:5: note: variable 'val' is declared here
JSValue val, proto;
^
./quickjs/quickjs.c:40759:5: warning: variable 'val' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
default:
^~~~~~~
./quickjs/quickjs.c:40762:44: note: uninitialized use occurs here
JS_DefinePropertyValue(ctx, obj, atom, val, prop_flags);
^~~
./quickjs/quickjs.c:40688:13: warning: variable 'val' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
default:
^~~~~~~
./quickjs/quickjs.c:40762:44: note: uninitialized use occurs here
JS_DefinePropertyValue(ctx, obj, atom, val, prop_flags);
^~~
./quickjs/quickjs.c:40671:5: note: variable 'val' is declared here
JSValue val;
^
./quickjs/quickjs.c:44424:43: warning: variable 'last' set but not used [-Wunused-but-set-variable]
JSValue arr, obj, ret, *arrp, *pval, *last;
^
./quickjs/quickjs.c:56953:12: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
static int JS_PRINTF_FORMAT_ATTR(2, 3) js_throw_URIError(JSContext *ctx, JS_PRINTF_FORMAT const char *fmt, ...)
^
quickjs/cutils.h:125:18: note: expanded from macro 'JS_PRINTF_FORMAT_ATTR'
__attribute__((format(printf, format_param, dots_param)))
^
In file included from libquickjs.c:243:
./quickjs/quickjs.c:62529:5: warning: variable 'ret' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
default:
^~~~~~~
./quickjs/quickjs.c:62532:12: note: uninitialized use occurs here
return ret;
^~~
./quickjs/quickjs.c:62397:5: note: variable 'ret' is declared here
JSValue ret;
^
./quickjs/quickjs.c:63725:9: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
JSValue JS_PRINTF_FORMAT_ATTR(3, 4) JS_ThrowDOMException(JSContext *ctx, const char *name, JS_PRINTF_FORMAT const char *fmt, ...)
^
quickjs/cutils.h:125:18: note: expanded from macro 'JS_PRINTF_FORMAT_ATTR'
__attribute__((format(printf, format_param, dots_param)))
^
In file included from libquickjs.c:256:
./quickjs/quickjs-libc.c:4949:17: warning: variable 'val' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
if (js_module_set_import_meta(ctx, obj, false, true) < 0)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./quickjs/quickjs-libc.c:4961:27: note: uninitialized use occurs here
JS_FreeValue(ctx, val);
^~~
./quickjs/quickjs-libc.c:4949:13: note: remove the 'if' if its condition is always false
if (js_module_set_import_meta(ctx, obj, false, true) < 0)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./quickjs/quickjs-libc.c:4945:17: warning: variable 'val' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
if (JS_ResolveModule(ctx, obj) < 0) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./quickjs/quickjs-libc.c:4961:27: note: uninitialized use occurs here
JS_FreeValue(ctx, val);
^~~
./quickjs/quickjs-libc.c:4945:13: note: remove the 'if' if its condition is always false
if (JS_ResolveModule(ctx, obj) < 0) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./quickjs/quickjs-libc.c:4939:17: warning: variable 'val' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
if (js_module_set_import_meta(ctx, obj, false, false) < 0)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./quickjs/quickjs-libc.c:4961:27: note: uninitialized use occurs here
JS_FreeValue(ctx, val);
^~~
./quickjs/quickjs-libc.c:4939:13: note: remove the 'if' if its condition is always false
if (js_module_set_import_meta(ctx, obj, false, false) < 0)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./quickjs/quickjs-libc.c:4935:9: warning: variable 'val' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
if (JS_IsException(obj))
^~~~~~~~~~~~~~~~~~~
./quickjs/quickjs-libc.c:4961:27: note: uninitialized use occurs here
JS_FreeValue(ctx, val);
^~~
./quickjs/quickjs-libc.c:4935:5: note: remove the 'if' if its condition is always false
if (JS_IsException(obj))
^~~~~~~~~~~~~~~~~~~~~~~~
./quickjs/quickjs-libc.c:4933:5: note: variable 'val' is declared here
JSValue obj, val;
^
63 warnings generated.
ar -rs ../inst/lib//libquickjs.a libquickjs.o
ar: creating archive ../inst/lib//libquickjs.a
clang++ -arch x86_64 -std=gnu++20 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I"include" -I"quickjs" -D_GNU_SOURCE -I/opt/R/x86_64/include -fPIC -falign-functions=64 -Wall -g -O2 -c quickjsr.cpp -o quickjsr.o
clang++ -arch x86_64 -std=gnu++20 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I"include" -I"quickjs" -D_GNU_SOURCE -I/opt/R/x86_64/include -fPIC -falign-functions=64 -Wall -g -O2 -c init.cpp -o init.o
clang++ -arch x86_64 -std=gnu++20 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -L/Library/Frameworks/R.framework/Resources/lib -L/opt/R/x86_64/lib -o QuickJSR.so quickjsr.o init.o ../inst/lib//libquickjs.a -F/Library/Frameworks/R.framework/.. -framework R
clang -arch x86_64 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I"include" -I"quickjs" -D_GNU_SOURCE -I/opt/R/x86_64/include -fPIC -falign-functions=64 -Wall -g -O2 -funsigned-char -std=gnu11 -c libquickjs.c
libquickjs.c:215:9: warning: 'stdout' macro redefined [-Wmacro-redefined]
#define stdout stdout_dummy
^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/stdio.h:128:9: note: previous definition is here
#define stdout __stdoutp
^
libquickjs.c:216:9: warning: 'stderr' macro redefined [-Wmacro-redefined]
#define stderr stderr_dummy
^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/stdio.h:129:9: note: previous definition is here
#define stderr __stderrp
^
In file included from libquickjs.c:240:
In file included from ./quickjs/dtoa.c:35:
quickjs/cutils.h:493:19: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
static inline int JS_PRINTF_FORMAT_ATTR(2, 3) dbuf_printf(DynBuf *s, JS_PRINTF_FORMAT const char *fmt, ...);
^
quickjs/cutils.h:125:18: note: expanded from macro 'JS_PRINTF_FORMAT_ATTR'
__attribute__((format(printf, format_param, dots_param)))
^
quickjs/cutils.h:841:19: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
static inline int JS_PRINTF_FORMAT_ATTR(2, 3) dbuf_printf(DynBuf *s, JS_PRINTF_FORMAT const char *fmt, ...)
^
quickjs/cutils.h:125:18: note: expanded from macro 'JS_PRINTF_FORMAT_ATTR'
__attribute__((format(printf, format_param, dots_param)))
^
In file included from libquickjs.c:241:
./quickjs/libregexp.c:692:12: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
static int JS_PRINTF_FORMAT_ATTR(2, 3) re_parse_error(REParseState *s, JS_PRINTF_FORMAT const char *fmt, ...)
^
quickjs/cutils.h:125:18: note: expanded from macro 'JS_PRINTF_FORMAT_ATTR'
__attribute__((format(printf, format_param, dots_param)))
^
In file included from libquickjs.c:243:
In file included from ./quickjs/quickjs.c:47:
quickjs/quickjs.h:850:19: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
JS_EXTERN JSValue JS_PRINTF_FORMAT_ATTR(2, 3) JS_NewInternalError(JSContext *ctx, JS_PRINTF_FORMAT const char *fmt, ...);
^
quickjs/cutils.h:125:18: note: expanded from macro 'JS_PRINTF_FORMAT_ATTR'
__attribute__((format(printf, format_param, dots_param)))
^
In file included from libquickjs.c:243:
In file included from ./quickjs/quickjs.c:47:
quickjs/quickjs.h:851:19: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
JS_EXTERN JSValue JS_PRINTF_FORMAT_ATTR(2, 3) JS_NewPlainError(JSContext *ctx, JS_PRINTF_FORMAT const char *fmt, ...);
^
quickjs/cutils.h:125:18: note: expanded from macro 'JS_PRINTF_FORMAT_ATTR'
__attribute__((format(printf, format_param, dots_param)))
^
In file included from libquickjs.c:243:
In file included from ./quickjs/quickjs.c:47:
quickjs/quickjs.h:852:19: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
JS_EXTERN JSValue JS_PRINTF_FORMAT_ATTR(2, 3) JS_NewRangeError(JSContext *ctx, JS_PRINTF_FORMAT const char *fmt, ...);
^
quickjs/cutils.h:125:18: note: expanded from macro 'JS_PRINTF_FORMAT_ATTR'
__attribute__((format(printf, format_param, dots_param)))
^
In file included from libquickjs.c:243:
In file included from ./quickjs/quickjs.c:47:
quickjs/quickjs.h:853:19: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
JS_EXTERN JSValue JS_PRINTF_FORMAT_ATTR(2, 3) JS_NewReferenceError(JSContext *ctx, JS_PRINTF_FORMAT const char *fmt, ...);
^
quickjs/cutils.h:125:18: note: expanded from macro 'JS_PRINTF_FORMAT_ATTR'
__attribute__((format(printf, format_param, dots_param)))
^
In file included from libquickjs.c:243:
In file included from ./quickjs/quickjs.c:47:
quickjs/quickjs.h:854:19: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
JS_EXTERN JSValue JS_PRINTF_FORMAT_ATTR(2, 3) JS_NewSyntaxError(JSContext *ctx, JS_PRINTF_FORMAT const char *fmt, ...);
^
quickjs/cutils.h:125:18: note: expanded from macro 'JS_PRINTF_FORMAT_ATTR'
__attribute__((format(printf, format_param, dots_param)))
^
In file included from libquickjs.c:243:
In file included from ./quickjs/quickjs.c:47:
quickjs/quickjs.h:855:19: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
JS_EXTERN JSValue JS_PRINTF_FORMAT_ATTR(2, 3) JS_NewTypeError(JSContext *ctx, JS_PRINTF_FORMAT const char *fmt, ...);
^
quickjs/cutils.h:125:18: note: expanded from macro 'JS_PRINTF_FORMAT_ATTR'
__attribute__((format(printf, format_param, dots_param)))
^
In file included from libquickjs.c:243:
In file included from ./quickjs/quickjs.c:47:
quickjs/quickjs.h:856:19: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
JS_EXTERN JSValue JS_PRINTF_FORMAT_ATTR(2, 3) JS_ThrowInternalError(JSContext *ctx, JS_PRINTF_FORMAT const char *fmt, ...);
^
quickjs/cutils.h:125:18: note: expanded from macro 'JS_PRINTF_FORMAT_ATTR'
__attribute__((format(printf, format_param, dots_param)))
^
In file included from libquickjs.c:243:
In file included from ./quickjs/quickjs.c:47:
quickjs/quickjs.h:857:19: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
JS_EXTERN JSValue JS_PRINTF_FORMAT_ATTR(2, 3) JS_ThrowPlainError(JSContext *ctx, JS_PRINTF_FORMAT const char *fmt, ...);
^
quickjs/cutils.h:125:18: note: expanded from macro 'JS_PRINTF_FORMAT_ATTR'
__attribute__((format(printf, format_param, dots_param)))
^
In file included from libquickjs.c:243:
In file included from ./quickjs/quickjs.c:47:
quickjs/quickjs.h:858:19: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
JS_EXTERN JSValue JS_PRINTF_FORMAT_ATTR(2, 3) JS_ThrowRangeError(JSContext *ctx, JS_PRINTF_FORMAT const char *fmt, ...);
^
quickjs/cutils.h:125:18: note: expanded from macro 'JS_PRINTF_FORMAT_ATTR'
__attribute__((format(printf, format_param, dots_param)))
^
In file included from libquickjs.c:243:
In file included from ./quickjs/quickjs.c:47:
quickjs/quickjs.h:859:19: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
JS_EXTERN JSValue JS_PRINTF_FORMAT_ATTR(2, 3) JS_ThrowReferenceError(JSContext *ctx, JS_PRINTF_FORMAT const char *fmt, ...);
^
quickjs/cutils.h:125:18: note: expanded from macro 'JS_PRINTF_FORMAT_ATTR'
__attribute__((format(printf, format_param, dots_param)))
^
In file included from libquickjs.c:243:
In file included from ./quickjs/quickjs.c:47:
quickjs/quickjs.h:860:19: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
JS_EXTERN JSValue JS_PRINTF_FORMAT_ATTR(2, 3) JS_ThrowSyntaxError(JSContext *ctx, JS_PRINTF_FORMAT const char *fmt, ...);
^
quickjs/cutils.h:125:18: note: expanded from macro 'JS_PRINTF_FORMAT_ATTR'
__attribute__((format(printf, format_param, dots_param)))
^
In file included from libquickjs.c:243:
In file included from ./quickjs/quickjs.c:47:
quickjs/quickjs.h:861:19: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
JS_EXTERN JSValue JS_PRINTF_FORMAT_ATTR(2, 3) JS_ThrowTypeError(JSContext *ctx, JS_PRINTF_FORMAT const char *fmt, ...);
^
quickjs/cutils.h:125:18: note: expanded from macro 'JS_PRINTF_FORMAT_ATTR'
__attribute__((format(printf, format_param, dots_param)))
^
In file included from libquickjs.c:243:
In file included from ./quickjs/quickjs.c:47:
quickjs/quickjs.h:862:19: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
JS_EXTERN JSValue JS_PRINTF_FORMAT_ATTR(3, 4) JS_ThrowDOMException(JSContext *ctx, const char *name, JS_PRINTF_FORMAT const char *fmt, ...);
^
quickjs/cutils.h:125:18: note: expanded from macro 'JS_PRINTF_FORMAT_ATTR'
__attribute__((format(printf, format_param, dots_param)))
^
In file included from libquickjs.c:243:
./quickjs/quickjs.c:7234:17: warning: variable 's' set but not used [-Wunused-but-set-variable]
JSMapState *s;
^
./quickjs/quickjs.c:8423:16: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
static JSValue JS_PRINTF_FORMAT_ATTR(4, 0)
^
quickjs/cutils.h:125:18: note: expanded from macro 'JS_PRINTF_FORMAT_ATTR'
__attribute__((format(printf, format_param, dots_param)))
^
In file included from libquickjs.c:243:
./quickjs/quickjs.c:8434:16: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
static JSValue JS_PRINTF_FORMAT_ATTR(4, 0)
^
quickjs/cutils.h:125:18: note: expanded from macro 'JS_PRINTF_FORMAT_ATTR'
__attribute__((format(printf, format_param, dots_param)))
^
In file included from libquickjs.c:243:
./quickjs/quickjs.c:8448:16: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
static JSValue JS_PRINTF_FORMAT_ATTR(3, 0)
^
quickjs/cutils.h:125:18: note: expanded from macro 'JS_PRINTF_FORMAT_ATTR'
__attribute__((format(printf, format_param, dots_param)))
^
In file included from libquickjs.c:243:
./quickjs/quickjs.c:8498:14: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
JS_ERROR_MAP(X)
^
./quickjs/quickjs.c:8498:14: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
./quickjs/quickjs.c:8498:14: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
./quickjs/quickjs.c:8498:14: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
./quickjs/quickjs.c:8498:14: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
./quickjs/quickjs.c:8498:14: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
./quickjs/quickjs.c:8498:14: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
./quickjs/quickjs.c:8498:14: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
./quickjs/quickjs.c:8498:14: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
./quickjs/quickjs.c:8498:14: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
./quickjs/quickjs.c:8498:14: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
./quickjs/quickjs.c:8498:14: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
./quickjs/quickjs.c:8503:12: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
static int JS_PRINTF_FORMAT_ATTR(3, 4) JS_ThrowTypeErrorOrFalse(JSContext *ctx, int flags, JS_PRINTF_FORMAT const char *fmt, ...)
^
quickjs/cutils.h:125:18: note: expanded from macro 'JS_PRINTF_FORMAT_ATTR'
__attribute__((format(printf, format_param, dots_param)))
^
In file included from libquickjs.c:243:
./quickjs/quickjs.c:9477:10: warning: variable 'atom1_is_integer' set but not used [-Wunused-but-set-variable]
bool atom1_is_integer, atom2_is_integer;
^
./quickjs/quickjs.c:9477:28: warning: variable 'atom2_is_integer' set but not used [-Wunused-but-set-variable]
bool atom1_is_integer, atom2_is_integer;
^
./quickjs/quickjs.c:13914:5: warning: variable 'val' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
default:
^~~~~~~
./quickjs/quickjs.c:13923:12: note: uninitialized use occurs here
return val;
^~~
./quickjs/quickjs.c:13762:5: note: variable 'val' is declared here
JSValue val;
^
./quickjs/quickjs.c:14043:5: warning: variable 'd' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
default:
^~~~~~~
./quickjs/quickjs.c:14046:13: note: uninitialized use occurs here
*pres = d;
^
./quickjs/quickjs.c:14029:13: note: initialize the variable 'd' to silence this warning
double d;
^
= 0.0
./quickjs/quickjs.c:15279:13: warning: variable 'r' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
default:
^~~~~~~
./quickjs/quickjs.c:15283:18: note: uninitialized use occurs here
if (!r)
^
./quickjs/quickjs.c:15256:24: note: initialize the variable 'r' to silence this warning
JSBigInt *r;
^
= NULL
./quickjs/quickjs.c:15545:9: warning: variable 'dr' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
default:
^~~~~~~
./quickjs/quickjs.c:15549:29: note: uninitialized use occurs here
sp[-2] = js_float64(dr);
^~
./quickjs/quickjs.c:15519:18: note: initialize the variable 'dr' to silence this warning
double dr;
^
= 0.0
./quickjs/quickjs.c:15510:9: warning: variable 'r' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
default:
^~~~~~~
./quickjs/quickjs.c:15515:14: note: uninitialized use occurs here
if (!r)
^
./quickjs/quickjs.c:15479:30: note: initialize the variable 'r' to silence this warning
JSBigInt *p1, *p2, *r;
^
= NULL
./quickjs/quickjs.c:15473:9: warning: variable 'v' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
default:
^~~~~~~
./quickjs/quickjs.c:15476:27: note: uninitialized use occurs here
sp[-2] = js_int64(v);
^
./quickjs/quickjs.c:15439:18: note: initialize the variable 'v' to silence this warning
int64_t v;
^
= 0
./quickjs/quickjs.c:15411:9: warning: variable 'v' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
default:
^~~~~~~
./quickjs/quickjs.c:15414:20: note: uninitialized use occurs here
if (likely(v >= JS_SHORT_BIG_INT_MIN && v <= JS_SHORT_BIG_INT_MAX)) {
^
quickjs/cutils.h:85:47: note: expanded from macro 'likely'
# define likely(x) __builtin_expect(!!(x), 1)
^
./quickjs/quickjs.c:15383:22: note: initialize the variable 'v' to silence this warning
js_sdlimb_t v;
^
= 0
./quickjs/quickjs.c:15830:9: warning: variable 'r' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
default:
^~~~~~~
./quickjs/quickjs.c:15833:27: note: uninitialized use occurs here
sp[-2] = js_int32(r);
^
./quickjs/quickjs.c:15682:23: note: initialize the variable 'r' to silence this warning
uint32_t v1, v2, r;
^
= 0
./quickjs/quickjs.c:15799:9: warning: variable 'r' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
default:
^~~~~~~
./quickjs/quickjs.c:15804:14: note: uninitialized use occurs here
if (!r)
^
./quickjs/quickjs.c:15760:30: note: initialize the variable 'r' to silence this warning
JSBigInt *p1, *p2, *r;
^
= NULL
./quickjs/quickjs.c:15739:9: warning: variable 'v' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
default:
^~~~~~~
./quickjs/quickjs.c:15742:43: note: uninitialized use occurs here
sp[-2] = __JS_NewShortBigInt(ctx, v);
^
./quickjs/quickjs.c:15690:29: note: initialize the variable 'v' to silence this warning
js_slimb_t v1, v2, v;
^
= 0
./quickjs/quickjs.c:15858:5: warning: variable 'p1' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
default:
^~~~~~~
./quickjs/quickjs.c:15861:12: note: uninitialized use occurs here
return p1;
^~
./quickjs/quickjs.c:15846:17: note: initialize the variable 'p1' to silence this warning
JSBigInt *p1;
^
= NULL
./quickjs/quickjs.c:15929:5: warning: variable 'res' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
default:
^~~~~~~
./quickjs/quickjs.c:15932:12: note: uninitialized use occurs here
return res;
^~~
./quickjs/quickjs.c:15869:12: note: initialize the variable 'res' to silence this warning
int res, val, tag1, tag2;
^
= 0
./quickjs/quickjs.c:17593:13: warning: variable 'var_ref' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
default:
^~~~~~~
./quickjs/quickjs.c:17596:18: note: uninitialized use occurs here
if (!var_ref)
^~~~~~~
./quickjs/quickjs.c:17578:30: note: initialize the variable 'var_ref' to silence this warning
JSVarRef *var_ref;
^
= NULL
./quickjs/quickjs.c:22539:5: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
int JS_PRINTF_FORMAT_ATTR(2, 3) js_parse_error(JSParseState *s, JS_PRINTF_FORMAT const char *fmt, ...)
^
quickjs/cutils.h:125:18: note: expanded from macro 'JS_PRINTF_FORMAT_ATTR'
__attribute__((format(printf, format_param, dots_param)))
^
In file included from libquickjs.c:243:
./quickjs/quickjs.c:26499:5: warning: variable 'var_def_type' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
default:
^~~~~~~
./quickjs/quickjs.c:26502:33: note: uninitialized use occurs here
if (define_var(s, fd, name, var_def_type) < 0)
^~~~~~~~~~~~
./quickjs/quickjs.c:26462:5: note: variable 'var_def_type' is declared here
JSVarDefEnum var_def_type;
^
./quickjs/quickjs.c:40661:5: warning: variable 'val' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
default:
^~~~~~~
./quickjs/quickjs.c:40664:12: note: uninitialized use occurs here
return val;
^~~
./quickjs/quickjs.c:40642:5: note: variable 'val' is declared here
JSValue val, proto;
^
./quickjs/quickjs.c:40759:5: warning: variable 'val' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
default:
^~~~~~~
./quickjs/quickjs.c:40762:44: note: uninitialized use occurs here
JS_DefinePropertyValue(ctx, obj, atom, val, prop_flags);
^~~
./quickjs/quickjs.c:40688:13: warning: variable 'val' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
default:
^~~~~~~
./quickjs/quickjs.c:40762:44: note: uninitialized use occurs here
JS_DefinePropertyValue(ctx, obj, atom, val, prop_flags);
^~~
./quickjs/quickjs.c:40671:5: note: variable 'val' is declared here
JSValue val;
^
./quickjs/quickjs.c:44424:43: warning: variable 'last' set but not used [-Wunused-but-set-variable]
JSValue arr, obj, ret, *arrp, *pval, *last;
^
./quickjs/quickjs.c:56953:12: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
static int JS_PRINTF_FORMAT_ATTR(2, 3) js_throw_URIError(JSContext *ctx, JS_PRINTF_FORMAT const char *fmt, ...)
^
quickjs/cutils.h:125:18: note: expanded from macro 'JS_PRINTF_FORMAT_ATTR'
__attribute__((format(printf, format_param, dots_param)))
^
In file included from libquickjs.c:243:
./quickjs/quickjs.c:62529:5: warning: variable 'ret' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
default:
^~~~~~~
./quickjs/quickjs.c:62532:12: note: uninitialized use occurs here
return ret;
^~~
./quickjs/quickjs.c:62397:5: note: variable 'ret' is declared here
JSValue ret;
^
./quickjs/quickjs.c:63725:9: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
JSValue JS_PRINTF_FORMAT_ATTR(3, 4) JS_ThrowDOMException(JSContext *ctx, const char *name, JS_PRINTF_FORMAT const char *fmt, ...)
^
quickjs/cutils.h:125:18: note: expanded from macro 'JS_PRINTF_FORMAT_ATTR'
__attribute__((format(printf, format_param, dots_param)))
^
In file included from libquickjs.c:256:
./quickjs/quickjs-libc.c:4949:17: warning: variable 'val' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
if (js_module_set_import_meta(ctx, obj, false, true) < 0)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./quickjs/quickjs-libc.c:4961:27: note: uninitialized use occurs here
JS_FreeValue(ctx, val);
^~~
./quickjs/quickjs-libc.c:4949:13: note: remove the 'if' if its condition is always false
if (js_module_set_import_meta(ctx, obj, false, true) < 0)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./quickjs/quickjs-libc.c:4945:17: warning: variable 'val' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
if (JS_ResolveModule(ctx, obj) < 0) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./quickjs/quickjs-libc.c:4961:27: note: uninitialized use occurs here
JS_FreeValue(ctx, val);
^~~
./quickjs/quickjs-libc.c:4945:13: note: remove the 'if' if its condition is always false
if (JS_ResolveModule(ctx, obj) < 0) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./quickjs/quickjs-libc.c:4939:17: warning: variable 'val' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
if (js_module_set_import_meta(ctx, obj, false, false) < 0)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./quickjs/quickjs-libc.c:4961:27: note: uninitialized use occurs here
JS_FreeValue(ctx, val);
^~~
./quickjs/quickjs-libc.c:4939:13: note: remove the 'if' if its condition is always false
if (js_module_set_import_meta(ctx, obj, false, false) < 0)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./quickjs/quickjs-libc.c:4935:9: warning: variable 'val' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
if (JS_IsException(obj))
^~~~~~~~~~~~~~~~~~~
./quickjs/quickjs-libc.c:4961:27: note: uninitialized use occurs here
JS_FreeValue(ctx, val);
^~~
./quickjs/quickjs-libc.c:4935:5: note: remove the 'if' if its condition is always false
if (JS_IsException(obj))
^~~~~~~~~~~~~~~~~~~~~~~~
./quickjs/quickjs-libc.c:4933:5: note: variable 'val' is declared here
JSValue obj, val;
^
63 warnings generated.
ar -rs ../inst/lib//libquickjs.a libquickjs.o
clang++ -arch x86_64 -std=gnu++20 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I"include" -I"quickjs" -D_GNU_SOURCE -I/opt/R/x86_64/include -fPIC -falign-functions=64 -Wall -g -O2 -c quickjsr.cpp -o quickjsr.o
clang++ -arch x86_64 -std=gnu++20 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I"include" -I"quickjs" -D_GNU_SOURCE -I/opt/R/x86_64/include -fPIC -falign-functions=64 -Wall -g -O2 -c init.cpp -o init.o
installing to /Volumes/Builds/packages/big-sur-x86_64/results/4.6/QuickJSR.Rcheck/00LOCK-QuickJSR/00new/QuickJSR/libs
** generating debug symbols (dSYM)
warning: /Volumes/Builds/packages/big-sur-x86_64/results/4.6/QuickJSR.Rcheck/00_pkg_src/QuickJSR/src/quickjsr.o: timestamp mismatch between object file (2026-08-21 20:37:33.757033178) and debug map (2026-08-21 20:36:23.000000000)
warning: /Volumes/Builds/packages/big-sur-x86_64/results/4.6/QuickJSR.Rcheck/00_pkg_src/QuickJSR/src/init.o: timestamp mismatch between object file (2026-08-21 20:37:29.648811330) and debug map (2026-08-21 20:36:19.000000000)
warning: (x86_64) /Volumes/Builds/packages/big-sur-x86_64/results/4.6/QuickJSR.Rcheck/00_pkg_src/QuickJSR/src/../inst/lib//libquickjs.a(libquickjs.o) unable to open object file: No such file or directory
warning: /Volumes/Builds/packages/big-sur-x86_64/results/4.6/QuickJSR.Rcheck/00_pkg_src/QuickJSR/src/quickjsr.o: timestamp mismatch between object file (2026-08-21 20:37:33.757033178) and debug map (2026-08-21 20:36:23.000000000)
warning: /Volumes/Builds/packages/big-sur-x86_64/results/4.6/QuickJSR.Rcheck/00_pkg_src/QuickJSR/src/init.o: timestamp mismatch between object file (2026-08-21 20:37:29.648811330) and debug map (2026-08-21 20:36:19.000000000)
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** checking absolute paths in shared objects and dynamic libraries
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (QuickJSR)