diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2023-03-21 21:32:55 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2023-03-21 21:32:55 -0700 |
commit | a362ce256bc948c0cf6233a00e21b397685d90e1 (patch) | |
tree | 4ab65e1e462df1df5086cbf4772c41d2eb6cadbe /stdlib/compiler.tl | |
parent | 08c24452910d4c430724e01b1feab36839856249 (diff) | |
download | txr-a362ce256bc948c0cf6233a00e21b397685d90e1.tar.gz txr-a362ce256bc948c0cf6233a00e21b397685d90e1.tar.bz2 txr-a362ce256bc948c0cf6233a00e21b397685d90e1.zip |
ignerr: fix unused warning
The ignerr intrinsic macro generates code that has
an unused variable. We fix it by turning it into
a gensym, since unused warnings aren't generated
for gensyms.
* eval.c (unused_arg_s): New static variable.
(me_ignerr): Use the value of unused_arg_s instead
of error_s, for the argument of the catch clause.
(eval_init): gc-protect unused_arg_s.
(eval_late_init): New function in which we initialized
unused_arg_s. The gensym function cannot be used
during eval_init.
* eval.h (eval_late_init): Declared.
* lib.c (init): Call eval_late_init after some other
late initializations.
Diffstat (limited to 'stdlib/compiler.tl')
0 files changed, 0 insertions, 0 deletions