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 unused variable warning introduced by #446 #453

Merged
merged 1 commit into from
Nov 4, 2024

Conversation

bobpaw
Copy link
Collaborator

@bobpaw bobpaw commented Sep 13, 2024

Fix unused variable warning introduced by #446

This fixes an unused warning when CMake is given -DENABLE_CAPSTONE by casting to void.

However, I wonder if we can remove the #ifndef altogether? Currently we expect Capstone meshes to never be periodic. But if they are periodic, I would expect we might want to do the recalculation.

@bobpaw bobpaw requested a review from cwsmith September 13, 2024 15:01
Copy link
Contributor

@cwsmith cwsmith left a comment

Choose a reason for hiding this comment

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

LGTM.

I'm not familiar enough with the context of the ifdef to provide a helpful response regarding its existence/usefulness.

@bobpaw
Copy link
Collaborator Author

bobpaw commented Sep 13, 2024

@onkarsahni Do you have any insights in terms of Capstone and periodic meshes? Is that something they might support in the future? If we remove the #ifndef HAVE_CAPSTONE the expensive parametric call still won't be made unless it's a 2d periodic mesh.

@bobpaw
Copy link
Collaborator Author

bobpaw commented Nov 4, 2024

We have not yet received input, but I am going to merge this for now since it suppresses the compilation warning without further judgement calls.

@bobpaw bobpaw merged commit 2234096 into develop Nov 4, 2024
4 checks passed
@bobpaw bobpaw deleted the apw/fix_periodic_warning branch November 4, 2024 16:37
flagdanger pushed a commit to jacobmerson/core that referenced this pull request Nov 22, 2024
Suppress warning by casting to void.

Signed-off-by: Aiden Woodruff <[email protected]>
flagdanger pushed a commit to jacobmerson/core that referenced this pull request Nov 22, 2024
Suppress warning by casting to void.

Signed-off-by: Aiden Woodruff <[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