Bug 423 - clang's static analyzer generates a huge number of warnings
Summary: clang's static analyzer generates a huge number of warnings
Alias: None
Product: libsigrok
Classification: Unclassified
Component: Other (show other bugs)
Version: unreleased development snapshot
Hardware: All All
: Normal normal
Target Milestone: ---
Assignee: Nobody
Depends on:
Reported: 2014-10-01 15:09 CEST by jens.steinhauser
Modified: 2014-10-02 15:11 CEST (History)
0 users

output of the static analyzer (77.67 KB, application/octet-stream)
2014-10-01 15:09 CEST, jens.steinhauser
latest static analyzer output (9.22 KB, text/plain)
2014-10-02 15:11 CEST, Bert Vermeulen

Note You need to log in before you can comment on or make changes to this bug.
Description jens.steinhauser 2014-10-01 15:09:37 CEST
Created attachment 85 [details]
output of the static analyzer

'build-scan' (clang's static analyzer) claims that it finds over 200 bugs in libsigrokdecode (with all drivers enabled). Sure, there might be some false positives and many warnings are in the generated code for the bindings, but some warnings may point to more serious mistakes.

With clang installed, the analyzer can be invoked by running "scan-build ./configure; scan-build make".
Comment 1 Bert Vermeulen 2014-10-02 15:11:33 CEST
Created attachment 86 [details]
latest static analyzer output