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

Clang Static Analyzer found 2 bugs #14

Open
Vidrep opened this issue Dec 10, 2017 · 2 comments
Open

Clang Static Analyzer found 2 bugs #14

Vidrep opened this issue Dec 10, 2017 · 2 comments

Comments

@Vidrep
Copy link

Vidrep commented Dec 10, 2017

Ran the Clang Static Analyzer on Sanity and it reports 2 bugs
See attached zip for full report

@Vidrep
Copy link
Author

Vidrep commented Dec 10, 2017

scan-build-Sanity.zip

@Vidrep
Copy link
Author

Vidrep commented Jun 19, 2019

Ran a build again. 2 bugs found.

Dead store	Dead assignment	SaneUtils.cpp	SetSaneInt	Line: 164
Dead store	Dead assignment	SaneUtils.cpp	SetSaneFloat	Line: 190

status = sane_control_option (device, option_num, SANE_ACTION_SET_VALUE, optval, &info);
--
  | Value stored to 'status' is never read

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant