* 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: ‘clang version 22.1.8’
using C++ compiler: ‘clang version 22.1.8’
make[1]: Entering directory '/data/localhost/ripley/R/packages/tests-clang/QuickJSR/src'
clang-22 -std=gnu23 -I"/data/localhost/ripley/R/R-clang/include" -DNDEBUG -I"include" -I"quickjs" -D_GNU_SOURCE -isystem /usr/local/clang22me/include -I/usr/local/clang/include -fpic -O3 -Wall -pedantic -Wp,-D_FORTIFY_SOURCE=3 -funsigned-char -std=gnu11 -c libquickjs.c
libquickjs.c:215:9: warning: 'stdout' macro redefined [-Wmacro-redefined]
215 | #define stdout stdout_dummy
| ^
/usr/include/stdio.h:158:9: note: previous definition is here
158 | #define stdout stdout
| ^
libquickjs.c:216:9: warning: 'stderr' macro redefined [-Wmacro-redefined]
216 | #define stderr stderr_dummy
| ^
/usr/include/stdio.h:159:9: note: previous definition is here
159 | #define stderr stderr
| ^
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]
493 | 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'
125 | __attribute__((format(printf, format_param, dots_param)))
| ^
./quickjs/cutils.h:841:19: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
841 | 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'
125 | __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]
692 | 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'
125 | __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]
850 | 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'
125 | __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]
851 | 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'
125 | __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]
852 | 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'
125 | __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]
853 | 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'
125 | __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]
854 | 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'
125 | __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]
855 | 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'
125 | __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]
856 | 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'
125 | __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]
857 | 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'
125 | __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]
858 | 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'
125 | __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]
859 | 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'
125 | __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]
860 | 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'
125 | __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]
861 | 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'
125 | __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]
862 | 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'
125 | __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]
7234 | JSMapState *s;
| ^
./quickjs/quickjs.c:8423:16: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
8423 | static JSValue JS_PRINTF_FORMAT_ATTR(4, 0)
| ^
./quickjs/cutils.h:125:18: note: expanded from macro 'JS_PRINTF_FORMAT_ATTR'
125 | __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]
8434 | static JSValue JS_PRINTF_FORMAT_ATTR(4, 0)
| ^
./quickjs/cutils.h:125:18: note: expanded from macro 'JS_PRINTF_FORMAT_ATTR'
125 | __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]
8448 | static JSValue JS_PRINTF_FORMAT_ATTR(3, 0)
| ^
./quickjs/cutils.h:125:18: note: expanded from macro 'JS_PRINTF_FORMAT_ATTR'
125 | __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]
8498 | 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]
8503 | 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'
125 | __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]
9477 | 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]
9477 | 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]
13914 | default:
| ^~~~~~~
./quickjs/quickjs.c:13923:12: note: uninitialized use occurs here
13923 | return val;
| ^~~
./quickjs/quickjs.c:13762:5: note: variable 'val' is declared here
13762 | JSValue val;
| ^
./quickjs/quickjs.c:14043:5: warning: variable 'd' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
14043 | default:
| ^~~~~~~
./quickjs/quickjs.c:14046:13: note: uninitialized use occurs here
14046 | *pres = d;
| ^
./quickjs/quickjs.c:14029:13: note: initialize the variable 'd' to silence this warning
14029 | double d;
| ^
| = 0.0
./quickjs/quickjs.c:15279:13: warning: variable 'r' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
15279 | default:
| ^~~~~~~
./quickjs/quickjs.c:15283:18: note: uninitialized use occurs here
15283 | if (!r)
| ^
./quickjs/quickjs.c:15256:24: note: initialize the variable 'r' to silence this warning
15256 | JSBigInt *r;
| ^
| = NULL
./quickjs/quickjs.c:15545:9: warning: variable 'dr' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
15545 | default:
| ^~~~~~~
./quickjs/quickjs.c:15549:29: note: uninitialized use occurs here
15549 | sp[-2] = js_float64(dr);
| ^~
./quickjs/quickjs.c:15519:18: note: initialize the variable 'dr' to silence this warning
15519 | double dr;
| ^
| = 0.0
./quickjs/quickjs.c:15510:9: warning: variable 'r' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
15510 | default:
| ^~~~~~~
./quickjs/quickjs.c:15515:14: note: uninitialized use occurs here
15515 | if (!r)
| ^
./quickjs/quickjs.c:15479:30: note: initialize the variable 'r' to silence this warning
15479 | JSBigInt *p1, *p2, *r;
| ^
| = NULL
./quickjs/quickjs.c:15473:9: warning: variable 'v' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
15473 | default:
| ^~~~~~~
./quickjs/quickjs.c:15476:27: note: uninitialized use occurs here
15476 | sp[-2] = js_int64(v);
| ^
./quickjs/quickjs.c:15439:18: note: initialize the variable 'v' to silence this warning
15439 | int64_t v;
| ^
| = 0
./quickjs/quickjs.c:15411:9: warning: variable 'v' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
15411 | default:
| ^~~~~~~
./quickjs/quickjs.c:15414:20: note: uninitialized use occurs here
15414 | if (likely(v >= JS_SHORT_BIG_INT_MIN && v <= JS_SHORT_BIG_INT_MAX)) {
| ^
./quickjs/quickjs.c:15383:22: note: initialize the variable 'v' to silence this warning
15383 | js_sdlimb_t v;
| ^
| = 0
./quickjs/quickjs.c:15830:9: warning: variable 'r' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
15830 | default:
| ^~~~~~~
./quickjs/quickjs.c:15833:27: note: uninitialized use occurs here
15833 | sp[-2] = js_int32(r);
| ^
./quickjs/quickjs.c:15682:23: note: initialize the variable 'r' to silence this warning
15682 | uint32_t v1, v2, r;
| ^
| = 0
./quickjs/quickjs.c:15799:9: warning: variable 'r' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
15799 | default:
| ^~~~~~~
./quickjs/quickjs.c:15804:14: note: uninitialized use occurs here
15804 | if (!r)
| ^
./quickjs/quickjs.c:15760:30: note: initialize the variable 'r' to silence this warning
15760 | JSBigInt *p1, *p2, *r;
| ^
| = NULL
./quickjs/quickjs.c:15739:9: warning: variable 'v' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
15739 | default:
| ^~~~~~~
./quickjs/quickjs.c:15742:43: note: uninitialized use occurs here
15742 | sp[-2] = __JS_NewShortBigInt(ctx, v);
| ^
./quickjs/quickjs.c:15690:29: note: initialize the variable 'v' to silence this warning
15690 | 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]
15858 | default:
| ^~~~~~~
./quickjs/quickjs.c:15861:12: note: uninitialized use occurs here
15861 | return p1;
| ^~
./quickjs/quickjs.c:15846:17: note: initialize the variable 'p1' to silence this warning
15846 | JSBigInt *p1;
| ^
| = NULL
./quickjs/quickjs.c:15929:5: warning: variable 'res' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
15929 | default:
| ^~~~~~~
./quickjs/quickjs.c:15932:12: note: uninitialized use occurs here
15932 | return res;
| ^~~
./quickjs/quickjs.c:15869:12: note: initialize the variable 'res' to silence this warning
15869 | 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]
17593 | default:
| ^~~~~~~
./quickjs/quickjs.c:17596:18: note: uninitialized use occurs here
17596 | if (!var_ref)
| ^~~~~~~
./quickjs/quickjs.c:17578:30: note: initialize the variable 'var_ref' to silence this warning
17578 | JSVarRef *var_ref;
| ^
| = NULL
./quickjs/quickjs.c:22539:5: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
22539 | 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'
125 | __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]
26499 | default:
| ^~~~~~~
./quickjs/quickjs.c:26502:33: note: uninitialized use occurs here
26502 | if (define_var(s, fd, name, var_def_type) < 0)
| ^~~~~~~~~~~~
./quickjs/quickjs.c:26462:5: note: variable 'var_def_type' is declared here
26462 | JSVarDefEnum var_def_type;
| ^
./quickjs/quickjs.c:40661:5: warning: variable 'val' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
40661 | default:
| ^~~~~~~
./quickjs/quickjs.c:40664:12: note: uninitialized use occurs here
40664 | return val;
| ^~~
./quickjs/quickjs.c:40642:5: note: variable 'val' is declared here
40642 | JSValue val, proto;
| ^
./quickjs/quickjs.c:40759:5: warning: variable 'val' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
40759 | default:
| ^~~~~~~
./quickjs/quickjs.c:40762:44: note: uninitialized use occurs here
40762 | 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]
40688 | default:
| ^~~~~~~
./quickjs/quickjs.c:40762:44: note: uninitialized use occurs here
40762 | JS_DefinePropertyValue(ctx, obj, atom, val, prop_flags);
| ^~~
./quickjs/quickjs.c:40671:5: note: variable 'val' is declared here
40671 | JSValue val;
| ^
./quickjs/quickjs.c:44424:43: warning: variable 'last' set but not used [-Wunused-but-set-variable]
44424 | JSValue arr, obj, ret, *arrp, *pval, *last;
| ^
./quickjs/quickjs.c:56953:12: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
56953 | 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'
125 | __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]
62529 | default:
| ^~~~~~~
./quickjs/quickjs.c:62532:12: note: uninitialized use occurs here
62532 | return ret;
| ^~~
./quickjs/quickjs.c:62397:5: note: variable 'ret' is declared here
62397 | JSValue ret;
| ^
./quickjs/quickjs.c:63725:9: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
63725 | 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'
125 | __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]
4949 | if (js_module_set_import_meta(ctx, obj, false, true) < 0)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./quickjs/quickjs-libc.c:4961:27: note: uninitialized use occurs here
4961 | JS_FreeValue(ctx, val);
| ^~~
./quickjs/quickjs-libc.c:4949:13: note: remove the 'if' if its condition is always false
4949 | if (js_module_set_import_meta(ctx, obj, false, true) < 0)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4950 | goto exception;
| ~~~~~~~~~~~~~~
./quickjs/quickjs-libc.c:4945:17: warning: variable 'val' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
4945 | if (JS_ResolveModule(ctx, obj) < 0) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./quickjs/quickjs-libc.c:4961:27: note: uninitialized use occurs here
4961 | JS_FreeValue(ctx, val);
| ^~~
./quickjs/quickjs-libc.c:4945:13: note: remove the 'if' if its condition is always false
4945 | if (JS_ResolveModule(ctx, obj) < 0) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4946 | JS_FreeValue(ctx, obj);
| ~~~~~~~~~~~~~~~~~~~~~~~
4947 | goto exception;
| ~~~~~~~~~~~~~~~
4948 | }
| ~
./quickjs/quickjs-libc.c:4939:17: warning: variable 'val' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
4939 | if (js_module_set_import_meta(ctx, obj, false, false) < 0)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./quickjs/quickjs-libc.c:4961:27: note: uninitialized use occurs here
4961 | JS_FreeValue(ctx, val);
| ^~~
./quickjs/quickjs-libc.c:4939:13: note: remove the 'if' if its condition is always false
4939 | if (js_module_set_import_meta(ctx, obj, false, false) < 0)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4940 | goto exception;
| ~~~~~~~~~~~~~~
./quickjs/quickjs-libc.c:4935:9: warning: variable 'val' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
4935 | if (JS_IsException(obj))
| ^~~~~~~~~~~~~~~~~~~
./quickjs/quickjs-libc.c:4961:27: note: uninitialized use occurs here
4961 | JS_FreeValue(ctx, val);
| ^~~
./quickjs/quickjs-libc.c:4935:5: note: remove the 'if' if its condition is always false
4935 | if (JS_IsException(obj))
| ^~~~~~~~~~~~~~~~~~~~~~~~
4936 | goto exception;
| ~~~~~~~~~~~~~~
./quickjs/quickjs-libc.c:4933:5: note: variable 'val' is declared here
4933 | JSValue obj, val;
| ^
63 warnings generated.
ar -rs ../inst/lib//libquickjs.a libquickjs.o
ar: creating ../inst/lib//libquickjs.a
clang++-22 -std=gnu++20 -I"/data/localhost/ripley/R/R-clang/include" -DNDEBUG -I"include" -I"quickjs" -D_GNU_SOURCE -isystem /usr/local/clang22me/include -I/usr/local/clang/include -fpic -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3 -Wno-missing-template-arg-list-after-template-kw -c quickjsr.cpp -o quickjsr.o
clang++-22 -std=gnu++20 -I"/data/localhost/ripley/R/R-clang/include" -DNDEBUG -I"include" -I"quickjs" -D_GNU_SOURCE -isystem /usr/local/clang22me/include -I/usr/local/clang/include -fpic -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3 -Wno-missing-template-arg-list-after-template-kw -c init.cpp -o init.o
clang++-22 -std=gnu++20 -shared -L/usr/local/clang/lib64 -L/usr/local/clang22me/lib -L/usr/local/clang22me/lib/x86_64-unknown-linux-gnu -L/usr/local/lib64 -o QuickJSR.so quickjsr.o init.o ../inst/lib//libquickjs.a
make[1]: Leaving directory '/data/localhost/ripley/R/packages/tests-clang/QuickJSR/src'
make[1]: Entering directory '/data/localhost/ripley/R/packages/tests-clang/QuickJSR/src'
clang-22 -std=gnu23 -I"/data/localhost/ripley/R/R-clang/include" -DNDEBUG -I"include" -I"quickjs" -D_GNU_SOURCE -isystem /usr/local/clang22me/include -I/usr/local/clang/include -fpic -O3 -Wall -pedantic -Wp,-D_FORTIFY_SOURCE=3 -funsigned-char -std=gnu11 -c libquickjs.c
libquickjs.c:215:9: warning: 'stdout' macro redefined [-Wmacro-redefined]
215 | #define stdout stdout_dummy
| ^
/usr/include/stdio.h:158:9: note: previous definition is here
158 | #define stdout stdout
| ^
libquickjs.c:216:9: warning: 'stderr' macro redefined [-Wmacro-redefined]
216 | #define stderr stderr_dummy
| ^
/usr/include/stdio.h:159:9: note: previous definition is here
159 | #define stderr stderr
| ^
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]
493 | 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'
125 | __attribute__((format(printf, format_param, dots_param)))
| ^
./quickjs/cutils.h:841:19: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
841 | 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'
125 | __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]
692 | 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'
125 | __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]
850 | 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'
125 | __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]
851 | 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'
125 | __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]
852 | 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'
125 | __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]
853 | 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'
125 | __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]
854 | 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'
125 | __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]
855 | 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'
125 | __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]
856 | 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'
125 | __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]
857 | 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'
125 | __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]
858 | 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'
125 | __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]
859 | 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'
125 | __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]
860 | 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'
125 | __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]
861 | 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'
125 | __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]
862 | 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'
125 | __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]
7234 | JSMapState *s;
| ^
./quickjs/quickjs.c:8423:16: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
8423 | static JSValue JS_PRINTF_FORMAT_ATTR(4, 0)
| ^
./quickjs/cutils.h:125:18: note: expanded from macro 'JS_PRINTF_FORMAT_ATTR'
125 | __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]
8434 | static JSValue JS_PRINTF_FORMAT_ATTR(4, 0)
| ^
./quickjs/cutils.h:125:18: note: expanded from macro 'JS_PRINTF_FORMAT_ATTR'
125 | __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]
8448 | static JSValue JS_PRINTF_FORMAT_ATTR(3, 0)
| ^
./quickjs/cutils.h:125:18: note: expanded from macro 'JS_PRINTF_FORMAT_ATTR'
125 | __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]
8498 | 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]
8503 | 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'
125 | __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]
9477 | 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]
9477 | 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]
13914 | default:
| ^~~~~~~
./quickjs/quickjs.c:13923:12: note: uninitialized use occurs here
13923 | return val;
| ^~~
./quickjs/quickjs.c:13762:5: note: variable 'val' is declared here
13762 | JSValue val;
| ^
./quickjs/quickjs.c:14043:5: warning: variable 'd' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
14043 | default:
| ^~~~~~~
./quickjs/quickjs.c:14046:13: note: uninitialized use occurs here
14046 | *pres = d;
| ^
./quickjs/quickjs.c:14029:13: note: initialize the variable 'd' to silence this warning
14029 | double d;
| ^
| = 0.0
./quickjs/quickjs.c:15279:13: warning: variable 'r' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
15279 | default:
| ^~~~~~~
./quickjs/quickjs.c:15283:18: note: uninitialized use occurs here
15283 | if (!r)
| ^
./quickjs/quickjs.c:15256:24: note: initialize the variable 'r' to silence this warning
15256 | JSBigInt *r;
| ^
| = NULL
./quickjs/quickjs.c:15545:9: warning: variable 'dr' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
15545 | default:
| ^~~~~~~
./quickjs/quickjs.c:15549:29: note: uninitialized use occurs here
15549 | sp[-2] = js_float64(dr);
| ^~
./quickjs/quickjs.c:15519:18: note: initialize the variable 'dr' to silence this warning
15519 | double dr;
| ^
| = 0.0
./quickjs/quickjs.c:15510:9: warning: variable 'r' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
15510 | default:
| ^~~~~~~
./quickjs/quickjs.c:15515:14: note: uninitialized use occurs here
15515 | if (!r)
| ^
./quickjs/quickjs.c:15479:30: note: initialize the variable 'r' to silence this warning
15479 | JSBigInt *p1, *p2, *r;
| ^
| = NULL
./quickjs/quickjs.c:15473:9: warning: variable 'v' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
15473 | default:
| ^~~~~~~
./quickjs/quickjs.c:15476:27: note: uninitialized use occurs here
15476 | sp[-2] = js_int64(v);
| ^
./quickjs/quickjs.c:15439:18: note: initialize the variable 'v' to silence this warning
15439 | int64_t v;
| ^
| = 0
./quickjs/quickjs.c:15411:9: warning: variable 'v' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
15411 | default:
| ^~~~~~~
./quickjs/quickjs.c:15414:20: note: uninitialized use occurs here
15414 | if (likely(v >= JS_SHORT_BIG_INT_MIN && v <= JS_SHORT_BIG_INT_MAX)) {
| ^
./quickjs/quickjs.c:15383:22: note: initialize the variable 'v' to silence this warning
15383 | js_sdlimb_t v;
| ^
| = 0
./quickjs/quickjs.c:15830:9: warning: variable 'r' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
15830 | default:
| ^~~~~~~
./quickjs/quickjs.c:15833:27: note: uninitialized use occurs here
15833 | sp[-2] = js_int32(r);
| ^
./quickjs/quickjs.c:15682:23: note: initialize the variable 'r' to silence this warning
15682 | uint32_t v1, v2, r;
| ^
| = 0
./quickjs/quickjs.c:15799:9: warning: variable 'r' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
15799 | default:
| ^~~~~~~
./quickjs/quickjs.c:15804:14: note: uninitialized use occurs here
15804 | if (!r)
| ^
./quickjs/quickjs.c:15760:30: note: initialize the variable 'r' to silence this warning
15760 | JSBigInt *p1, *p2, *r;
| ^
| = NULL
./quickjs/quickjs.c:15739:9: warning: variable 'v' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
15739 | default:
| ^~~~~~~
./quickjs/quickjs.c:15742:43: note: uninitialized use occurs here
15742 | sp[-2] = __JS_NewShortBigInt(ctx, v);
| ^
./quickjs/quickjs.c:15690:29: note: initialize the variable 'v' to silence this warning
15690 | 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]
15858 | default:
| ^~~~~~~
./quickjs/quickjs.c:15861:12: note: uninitialized use occurs here
15861 | return p1;
| ^~
./quickjs/quickjs.c:15846:17: note: initialize the variable 'p1' to silence this warning
15846 | JSBigInt *p1;
| ^
| = NULL
./quickjs/quickjs.c:15929:5: warning: variable 'res' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
15929 | default:
| ^~~~~~~
./quickjs/quickjs.c:15932:12: note: uninitialized use occurs here
15932 | return res;
| ^~~
./quickjs/quickjs.c:15869:12: note: initialize the variable 'res' to silence this warning
15869 | 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]
17593 | default:
| ^~~~~~~
./quickjs/quickjs.c:17596:18: note: uninitialized use occurs here
17596 | if (!var_ref)
| ^~~~~~~
./quickjs/quickjs.c:17578:30: note: initialize the variable 'var_ref' to silence this warning
17578 | JSVarRef *var_ref;
| ^
| = NULL
./quickjs/quickjs.c:22539:5: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
22539 | 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'
125 | __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]
26499 | default:
| ^~~~~~~
./quickjs/quickjs.c:26502:33: note: uninitialized use occurs here
26502 | if (define_var(s, fd, name, var_def_type) < 0)
| ^~~~~~~~~~~~
./quickjs/quickjs.c:26462:5: note: variable 'var_def_type' is declared here
26462 | JSVarDefEnum var_def_type;
| ^
./quickjs/quickjs.c:40661:5: warning: variable 'val' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
40661 | default:
| ^~~~~~~
./quickjs/quickjs.c:40664:12: note: uninitialized use occurs here
40664 | return val;
| ^~~
./quickjs/quickjs.c:40642:5: note: variable 'val' is declared here
40642 | JSValue val, proto;
| ^
./quickjs/quickjs.c:40759:5: warning: variable 'val' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
40759 | default:
| ^~~~~~~
./quickjs/quickjs.c:40762:44: note: uninitialized use occurs here
40762 | 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]
40688 | default:
| ^~~~~~~
./quickjs/quickjs.c:40762:44: note: uninitialized use occurs here
40762 | JS_DefinePropertyValue(ctx, obj, atom, val, prop_flags);
| ^~~
./quickjs/quickjs.c:40671:5: note: variable 'val' is declared here
40671 | JSValue val;
| ^
./quickjs/quickjs.c:44424:43: warning: variable 'last' set but not used [-Wunused-but-set-variable]
44424 | JSValue arr, obj, ret, *arrp, *pval, *last;
| ^
./quickjs/quickjs.c:56953:12: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
56953 | 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'
125 | __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]
62529 | default:
| ^~~~~~~
./quickjs/quickjs.c:62532:12: note: uninitialized use occurs here
62532 | return ret;
| ^~~
./quickjs/quickjs.c:62397:5: note: variable 'ret' is declared here
62397 | JSValue ret;
| ^
./quickjs/quickjs.c:63725:9: warning: 'format' attribute argument not supported: printf_wrapper [-Wignored-attributes]
63725 | 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'
125 | __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]
4949 | if (js_module_set_import_meta(ctx, obj, false, true) < 0)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./quickjs/quickjs-libc.c:4961:27: note: uninitialized use occurs here
4961 | JS_FreeValue(ctx, val);
| ^~~
./quickjs/quickjs-libc.c:4949:13: note: remove the 'if' if its condition is always false
4949 | if (js_module_set_import_meta(ctx, obj, false, true) < 0)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4950 | goto exception;
| ~~~~~~~~~~~~~~
./quickjs/quickjs-libc.c:4945:17: warning: variable 'val' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
4945 | if (JS_ResolveModule(ctx, obj) < 0) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./quickjs/quickjs-libc.c:4961:27: note: uninitialized use occurs here
4961 | JS_FreeValue(ctx, val);
| ^~~
./quickjs/quickjs-libc.c:4945:13: note: remove the 'if' if its condition is always false
4945 | if (JS_ResolveModule(ctx, obj) < 0) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4946 | JS_FreeValue(ctx, obj);
| ~~~~~~~~~~~~~~~~~~~~~~~
4947 | goto exception;
| ~~~~~~~~~~~~~~~
4948 | }
| ~
./quickjs/quickjs-libc.c:4939:17: warning: variable 'val' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
4939 | if (js_module_set_import_meta(ctx, obj, false, false) < 0)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./quickjs/quickjs-libc.c:4961:27: note: uninitialized use occurs here
4961 | JS_FreeValue(ctx, val);
| ^~~
./quickjs/quickjs-libc.c:4939:13: note: remove the 'if' if its condition is always false
4939 | if (js_module_set_import_meta(ctx, obj, false, false) < 0)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4940 | goto exception;
| ~~~~~~~~~~~~~~
./quickjs/quickjs-libc.c:4935:9: warning: variable 'val' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
4935 | if (JS_IsException(obj))
| ^~~~~~~~~~~~~~~~~~~
./quickjs/quickjs-libc.c:4961:27: note: uninitialized use occurs here
4961 | JS_FreeValue(ctx, val);
| ^~~
./quickjs/quickjs-libc.c:4935:5: note: remove the 'if' if its condition is always false
4935 | if (JS_IsException(obj))
| ^~~~~~~~~~~~~~~~~~~~~~~~
4936 | goto exception;
| ~~~~~~~~~~~~~~
./quickjs/quickjs-libc.c:4933:5: note: variable 'val' is declared here
4933 | JSValue obj, val;
| ^
63 warnings generated.
ar -rs ../inst/lib//libquickjs.a libquickjs.o
clang++-22 -std=gnu++20 -I"/data/localhost/ripley/R/R-clang/include" -DNDEBUG -I"include" -I"quickjs" -D_GNU_SOURCE -isystem /usr/local/clang22me/include -I/usr/local/clang/include -fpic -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3 -Wno-missing-template-arg-list-after-template-kw -c quickjsr.cpp -o quickjsr.o
clang++-22 -std=gnu++20 -I"/data/localhost/ripley/R/R-clang/include" -DNDEBUG -I"include" -I"quickjs" -D_GNU_SOURCE -isystem /usr/local/clang22me/include -I/usr/local/clang/include -fpic -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3 -Wno-missing-template-arg-list-after-template-kw -c init.cpp -o init.o
make[1]: Leaving directory '/data/localhost/ripley/R/packages/tests-clang/QuickJSR/src'
installing to /data/localhost/ripley/R/packages/tests-clang/QuickJSR.Rcheck/00LOCK-QuickJSR/00new/QuickJSR/libs
** 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)