Skip to content
This repository was archived by the owner on Aug 13, 2025. It is now read-only.

Fix warnings in tests.#38

Merged
Shinmera merged 1 commit intoShinmera:masterfrom
Gleefre:fix-tests-warnings
May 7, 2025
Merged

Fix warnings in tests.#38
Shinmera merged 1 commit intoShinmera:masterfrom
Gleefre:fix-tests-warnings

Conversation

@Gleefre
Copy link
Copy Markdown
Contributor

@Gleefre Gleefre commented May 7, 2025

(For reference, tests that are modified by this pull request were introduced in #11.)

When compiling/running tests, warnings are signaled due to foo-... and bar-... functions having an unused argument.

This updates those tests by removing temporary functions foo-... and bar-..., as well as local foo and bar in analogous tests. It seems that their only purpose is to prevent constant folding, but it doesn't work well since they can be inlined. Instead, read-from-string and symbol-value are used to prevent constant folding.

Removes temporary functions, since they could be inlined anyway.
Uses SYMBOL-VALUE to preven constant-folding similarly to READ-FROM-STRING.
@Shinmera
Copy link
Copy Markdown
Owner

Shinmera commented May 7, 2025

Thanks for this as well!

@Shinmera Shinmera merged commit 91937a9 into Shinmera:master May 7, 2025
0 of 8 checks passed
@Gleefre Gleefre deleted the fix-tests-warnings branch May 7, 2025 18:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants