Skip to content

Fix set-but-unused-variable warnings#240

Merged
cburstedde merged 2 commits into
cburstedde:developfrom
hannesbrandt:fix-unused-variable
May 22, 2026
Merged

Fix set-but-unused-variable warnings#240
cburstedde merged 2 commits into
cburstedde:developfrom
hannesbrandt:fix-unused-variable

Conversation

@hannesbrandt

Copy link
Copy Markdown
Collaborator

Fix set-but-unused-variable warnings

Proposed changes:
This PR addresses a recent issue in the p4est CI (https://github.com/cburstedde/p4est/actions/runs/26040411092/job/76567611984). There were some set-but-unused-variable warnings for variables that are only used in assertions. This PR removes the warnings by enclosing the variables in an #ifdef P4EST_ENABLE_DEBUG.

@cburstedde

Copy link
Copy Markdown
Owner

Thanks, looking good!

@cburstedde cburstedde merged commit 6928417 into cburstedde:develop May 22, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants