Fix warnings when building in release mode

This commit is contained in:
2025-09-21 03:33:14 -07:00
parent 0b2e5f2366
commit 96c4d9eecb
2 changed files with 8 additions and 8 deletions

View File

@ -238,8 +238,8 @@ void set_function_args(LispFunction *func, LispVal *args) {
func->kwargs = make_lisp_hashtable(Qnil, Qnil);
func->allow_other_keys = false;
LispVal *rargs_end;
LispVal *oargs_end;
LispVal *rargs_end = Qnil;
LispVal *oargs_end = Qnil;
FOREACH(arg, args) {
if (arg == Qopt) {
@ -801,7 +801,7 @@ void cancel_cleanup(void *handle) {
DEFUN(backtrace, "backtrace", (void) ) {
LispVal *head = Qnil;
LispVal *end;
LispVal *end = Qnil;
for (StackFrame *frame = the_stack; frame; frame = frame->next) {
if (frame->hidden) {
continue;
@ -1274,7 +1274,7 @@ static inline LispVal *eval_function_args(LispVal *args, LispVal *lexenv) {
WITH_PUSH_FRAME(Qnil, Qnil, true, {
void *cl_handle = register_cleanup(
(lisp_cleanup_func_t) &unref_double_ptr, &final_args);
LispVal *end;
LispVal *end = Qnil;
FOREACH(elt, args) {
if (NILP(final_args)) {
final_args = Fpair(Feval_in_env(elt, lexenv), Qnil);
@ -1302,7 +1302,7 @@ static LispVal **process_builtin_args(LispVal *fname, LispFunction *func,
LispVal **vec = lisp_malloc(sizeof(LispVal *) * raw_count);
memset(vec, 0, sizeof(LispVal *) * raw_count);
LispVal *rest = Qnil;
LispVal *rest_end;
LispVal *rest_end = Qnil;
size_t have_count = 0;
LispVal *opt_desc;
LispVal *arg = Qnil; // last arg processed
@ -1976,7 +1976,7 @@ static LispVal *filter_body_tree(LispVal *body,
void *user_data),
void *user_data) {
LispVal *start = Qnil;
LispVal *end;
LispVal *end = Qnil;
FOREACH(form, body) {
LispVal *filtered = filter_body_form(form, func, user_data);
if (NILP(start)) {
@ -2006,7 +2006,7 @@ DEFUN(macroexpand_all, "macroexpand-all",
DEFUN(apply, "apply", (LispVal * function, LispVal *rest)) {
LispVal *args = Qnil;
LispVal *end;
LispVal *end = Qnil;
while (!NILP(rest) && !NILP(((LispPair *) rest)->tail)) {
if (NILP(args)) {
args = Fpair(((LispPair *) rest)->head, Qnil);