Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix all Sail compilation warnings #540

Merged
merged 2 commits into from
Sep 10, 2024

Conversation

Timmmm
Copy link
Collaborator

@Timmmm Timmmm commented Sep 9, 2024

Add pure/impure annotations and remove some duplicate function declarations.

Add `pure`/`impure` annotations and remove some duplicate function declarations.
@Timmmm Timmmm requested a review from Alasdair September 9, 2024 08:47
@Timmmm
Copy link
Collaborator Author

Timmmm commented Sep 9, 2024

@Alasdair I wasn't sure if printing functions should count as pure or impure from Sail's perspective seeing as they're technically impure but the Sail model can't actually observe the impurity.

Copy link

github-actions bot commented Sep 9, 2024

Test Results

712 tests  ±0   712 ✅ ±0   0s ⏱️ ±0s
  6 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit ae1e75e. ± Comparison against base commit a58c58c.

♻️ This comment has been updated with latest results.

From the Sail model's perspective the output is not observable so these are pure. Also the pure/impure is used for formal backends which don't actually print anything anyway.
@Timmmm
Copy link
Collaborator Author

Timmmm commented Sep 10, 2024

@billmcspadden-riscv also this one can be merged.

@Timmmm
Copy link
Collaborator Author

Timmmm commented Sep 10, 2024

Btw I would recommend using squash and merge, especially when there's only one commit in the PR. Otherwise you get a needlessly convoluted commit history.

@billmcspadden-riscv billmcspadden-riscv merged commit d36ea53 into riscv:master Sep 10, 2024
2 checks passed
@Timmmm Timmmm deleted the user/timh/warnings branch September 23, 2024 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants