← Back to team overview

kicad-developers team mailing list archive

Updated warning histogram of wxPython build

 

I updated the regex string in warnings-histo.rb (see attached). The previous version was missing some warnings.

-----

Below is a fresh run on kicad 5403 source.

This run is only the wxPython part of the build script. This includes output from scan-build

scan-build was having some problems early in the kicad part and quit. I am trying again on this.


Bobs-MacBook-Air:KiCad bobgus$ ruby warnings-histo.rb malloc.ana.out

warning

     9    Division by zero
     5    The left operand of '==' is a garbage value
     3    Dereference of undefined pointer value
     3    Value stored to 'passes' is never read
     2    Value stored to 'pos' is never read
     2    Result of 'malloc' is converted to a pointer of type 'union
     2    Dereference of null pointer
     2    Array access (via field 'mem_buffer') results in a null poin
     2    Branch condition evaluates to a garbage value
     2    Value stored to 'scanptr' is never read
     1    The left operand of '!=' is a garbage value
     1    The left operand of '<' is a garbage value
     1    Access to field 'sent_table' results in a dereference of a n
     1    Value stored to 'typewidth' during its initialization is nev
     1    Array access (via field 'tif_dirlist') results in a null poi
     1    Value stored to 'c' is never read
     1    Value stored to 'code' is never read
     1    Assigned value is garbage or undefined
     1    Call to 'malloc' has an allocation size of 0 bytes
     1    Access to field 'inchain' results in a dereference of a null
     1    Access to field 'outchain' results in a dereference of a nul
     1    Array access (via field 'scaffIndex') results in a null poin
     1    Access to field 'chrs' results in a dereference of a null po
     1    Result of 'malloc' is converted to a pointer of type 'char',

Done, total = 46 of warning

note

     4    expanded from macro 'MALLOC'
     1    expanded from macro 'VS'

Done, total = 5 of note

fatal error

    40    'string' file not found
    12    'vector' file not found
     2    'algorithm' file not found

Done, total = 54 of fatal error
Bobs-MacBook-Air:KiCad bobgus$

Attachment: warnings-histo.rb
Description: application/ruby