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

Clean up build warnings #26

Merged
merged 2 commits into from
Aug 25, 2020
Merged

Conversation

dcmiddle
Copy link
Contributor

@dcmiddle dcmiddle commented May 4, 2019

Several variables are used only in assertions. In release builds those
assertions get optimized out leaving otherwise unused variables behind
resulting in unused-but-set-variable warnings. This commit applies the
UNUSED() utility already defined in libff for this purpose.

This likewise cleans up downstream builds in projects consuming libff such as libsnark.

Several variables are used only in assertions. In release builds those
assertions get optimized out leaving otherwise unused variables behind
resulting in unused-but-set-variable warnings. This commit applies the
UNUSED() utility already defined in libff for this purpose.

Signed-off-by: Dan Middleton <[email protected]>
@dcmiddle
Copy link
Contributor Author

dcmiddle commented May 4, 2019

@ValarDragon ValarDragon changed the base branch from master to staging August 25, 2020 02:55
Copy link
Member

@ValarDragon ValarDragon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for the PR, glad to have these stop clogging build output!

@ValarDragon ValarDragon merged commit d5768ab into scipr-lab:staging Aug 25, 2020
ValarDragon pushed a commit that referenced this pull request Sep 25, 2020
Several variables are used only in assertions. In release builds those
assertions get optimized out leaving otherwise unused variables behind
resulting in unused-but-set-variable warnings. This commit applies the
UNUSED() utility already defined in libff for this purpose.

Signed-off-by: Dan Middleton <[email protected]>

Merged-by: Dev Ojha <[email protected]>
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.

2 participants