summaryrefslogtreecommitdiffstats
path: root/gc.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2023-01-20 23:51:50 -0800
committerKaz Kylheku <kaz@kylheku.com>2023-01-20 23:51:50 -0800
commit366a7fba840293f54ae49108f4bc5d3d94c848c4 (patch)
treefcb82613411d437840bebbb08b9de778d562d234 /gc.c
parentc6d7e940e105958e4303eba504cf147b7f428cdf (diff)
downloadtxr-366a7fba840293f54ae49108f4bc5d3d94c848c4.tar.gz
txr-366a7fba840293f54ae49108f4bc5d3d94c848c4.tar.bz2
txr-366a7fba840293f54ae49108f4bc5d3d94c848c4.zip
fix --no-gen-gc configuration.
This fixes only the build. I'm getting a crash in one test case, namely tests/010/json.tl. * lib.h (mut): Remove stray semicolon from definition. This semicolon compensates for the lack of a semicolon in txr.c, which becomes a syntax errror under no-gen-gc, when the other definition of mut is active. (mkloc, setcheck): Let's add casts of the object argument to void. This gets rid of a number of unused parameter errors in various functions that take an object parameter that is only used in the case of generational GC. * txr.c (txr_main): Add missing semicolon after mut call. * gc.c (gc_wrap): In the no CONFIG_GEN_GC case, cast argument full to void, since it is unused.
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gc.c b/gc.c
index 02a0cb9c..25b4c071 100644
--- a/gc.c
+++ b/gc.c
@@ -1053,6 +1053,8 @@ static val gc_wrap(val full)
#if CONFIG_GEN_GC
if (!null_or_missing_p(full))
full_gc = 1;
+#else
+ (void) full;
#endif
gc();
return t;