Remove dead store identified by a static analyzer (#3341)

Evaluate to_quoted, possibly for side effect (emitting a
quote), but ignore its return value.

Co-authored-by: Jesse Alama <jesse@lisp.sh>
This commit is contained in:
Jesse Alama 2020-08-11 19:11:54 +02:00 committed by GitHub
parent 983601f611
commit b722d81059
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2002,7 +2002,7 @@ print(Scheme_Object *obj, int notdisplay, int compact, Scheme_Hash_Table *ht,
if (compact) {
print_compact(pp, CPT_NULL);
} else {
notdisplay = to_quoted(NULL, pp, notdisplay);
to_quoted(NULL, pp, notdisplay);
print_utf8_string(pp, "()", 0, 2);
closed = 1;
}