Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-7061

fix warnings produced by clang static analyzer

    XMLWordPrintable

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.6
    • Fix Version/s: 2.2.0rc1
    • Component/s: Agent (G), Proxy (P), Server (S)
    • Labels:
      None

      Description

      The Clang project features a useful tool for analyzing source code statically, see http://clang-analyzer.llvm.org/scan-build.html .

      A simple way to run it on Zabbix source code is as follows:

      $ apt-get install clang
      $ export CC=clang
      $ scan-build ./configure ...
      $ scan-build make -s -j4

      The tool produces a report viewable within a Web browser. Currently, it lists around 17 bugs, mostly having to do with dead stores (unused values).

      We might also with to perform static analysis as part of our unit test framework.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            asaveljevs Aleksandrs Saveljevs
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: