Fix unused variable warnings by using n_mulhi#2656
Merged
fredrik-johansson merged 1 commit intoflintlib:mainfrom May 4, 2026
Merged
Fix unused variable warnings by using n_mulhi#2656fredrik-johansson merged 1 commit intoflintlib:mainfrom
fredrik-johansson merged 1 commit intoflintlib:mainfrom
Conversation
Collaborator
|
To better understand what this solves and why a solution is needed, could you please give more details on the context in which these pieces of code triggered this warning? Is this when compiling flint itself? If yes, on what kind of system/compiler/cpu? Some comments:
|
Collaborator
|
I believe it is being triggered for at least all Clang compilers. The only reason why some people never see these warnings is because we force GCC to use assembly, where GCC assumes that the variables are being used. |
67e3da4 to
2421b9c
Compare
2421b9c to
d9d1407
Compare
Contributor
Author
|
Collaborator
|
Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix #2655
The transformations are clearly safe, and the warnings are gone on my machine.