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

    • Incident report
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.1.6
    • 2.2.0rc1
    • Agent (G), Proxy (P), Server (S)
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: