Skip to content

Fix unused variable x in sample_usage.cpp#16

Merged
ednolan merged 1 commit intobemanproject:mainfrom
neatudarius:fix/unused-variable-sample-usage
Apr 25, 2026
Merged

Fix unused variable x in sample_usage.cpp#16
ednolan merged 1 commit intobemanproject:mainfrom
neatudarius:fix/unused-variable-sample-usage

Conversation

@neatudarius
Copy link
Copy Markdown
Member

@neatudarius neatudarius commented Apr 25, 2026

Summary

  • Replace int x = f(); return 0; with return f(); in examples/sample_usage.cpp
  • Fixes -Werror=unused-variable compiler error introduced in fe10bee

Fixes the issue reported by @EddieNolan.

Test plan

  • Confirm -Werror CI job passes after this change

🤖 Generated with Claude Code

Issue: #15

Replace `int x = f()` + `return 0` with `return f()` to avoid
the -Werror=unused-variable compiler error introduced in fe10bee.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ednolan ednolan merged commit 15f3640 into bemanproject:main Apr 25, 2026
67 of 68 checks passed
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