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

bitwise: Avoid duplicate definitions on one scope #907

Merged
merged 4 commits into from Feb 7, 2024
Merged

Conversation

kk7ds
Copy link
Owner

@kk7ds kk7ds commented Feb 6, 2024

This makes bitwise warn about duplicate names defined in the same
scope, which before resulted in loss of access to the eclipsed
element. Now, an error log is emitted.

There are a lot of drivers committing this crime, so I've added a
test to highlight them and marked it as XFAIL for the moment.

Fixes #11140

@kk7ds kk7ds force-pushed the bitwise-dupcheck branch 3 times, most recently from df2e0a6 to 6420c38 Compare February 7, 2024 01:04
The icv80 had a duplicate entry in a bitwise scope, which caused the
driver author to incorrectly use a set_raw(15) instead of 16. Also,
a one-off on the number of channels was causing a negative seek,
and also a few unnecessary seeks.
This makes bitwise warn about duplicate names defined in the same
scope, which before resulted in loss of access to the eclipsed
element. Now, an error log is emitted.

There are a lot of drivers committing this crime, so I've added a
test to highlight them and marked it as XFAIL for the moment.

Fixes #11140
@kk7ds kk7ds merged commit e3ad23c into master Feb 7, 2024
6 checks passed
@kk7ds kk7ds deleted the bitwise-dupcheck branch February 7, 2024 23:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant