HaikuArchives / sanity

A graphical Haiku & BeOS scanner application, using SANE.
1 stars 4 forks source link

Clang Static Analyzer found 2 bugs #14

Open Vidrep opened 6 years ago

Vidrep commented 6 years ago

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

Vidrep commented 6 years ago

scan-build-Sanity.zip

Vidrep commented 5 years ago

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