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 compiler error with clang15 #482

Merged
merged 1 commit into from
Feb 21, 2023
Merged

Conversation

ehaupt
Copy link
Contributor

@ehaupt ehaupt commented Feb 14, 2023

This fixes the following compiler error since -Werror is used:

gui/order_list_editor/order_list_panel.cpp:712:43: error: variable 'trackVisIdx' set but not used [-Werror,-Wunused-but-set-variable]
        for (int x = rowNumWidth_ + trackWidth_, trackVisIdx = leftTrackVisIdx_; x <= maxWidth; ++trackVisIdx) {
                                                 ^
1 error generated.

This fixes the following compiler error since -Werror is used:

```
gui/order_list_editor/order_list_panel.cpp:712:43: error: variable 'trackVisIdx' set but not used [-Werror,-Wunused-but-set-variable]
        for (int x = rowNumWidth_ + trackWidth_, trackVisIdx = leftTrackVisIdx_; x <= maxWidth; ++trackVisIdx) {
                                                 ^
1 error generated.
```
@ehaupt
Copy link
Contributor Author

ehaupt commented Feb 14, 2023

Full build log: bambootracker-0.6.1.log

@rerrahkr rerrahkr merged commit e7babd8 into BambooTracker:master Feb 21, 2023
@rerrahkr
Copy link
Member

Thank you for your contribution!

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.

None yet

2 participants