Menu

#31 Warning and static analyzer cleanup

closed
nobody
None
5
2012-02-03
2012-01-31
Kent
No

Some miscellaneous cleanup of warnings and clang static analyzer suggestions. Mostly removing unused variables or dead stores.

One behavior change is 3 instances of memset where only the first part of the struct was being set to 0, rather than the entire struct. The memset call's length was set to sizeof(somepointer) rather than sizeof(pointerstruct*optional_arraylength)

There are still some warnings due to ignoring constness as well as some false positives where the analyzer doesn't understand libical's custom assertion, but I left those alone.

Discussion

  • Kent

    Kent - 2012-01-31
     
  • Allen Winter

    Allen Winter - 2012-02-03
    • status: open --> closed
     
  • Allen Winter

    Allen Winter - 2012-02-03

    committed, thanks!

    r1120

     

Log in to post a comment.