Bug 423

Summary: clang's static analyzer generates a huge number of warnings
Product: libsigrok Reporter: jens.steinhauser
Component: OtherAssignee: Nobody <nobody>
Status: CONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unreleased development snapshot   
Target Milestone: ---   
Hardware: All   
OS: All   
Attachments: output of the static analyzer
latest static analyzer output

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