Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-4451

Enable `-Wnull-dereference` when building Mesos

    XMLWordPrintableJSON

Details

    • Task
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • build

    Description

      Currently we don't have -Wnull-dereference enabled for Mesos. This can sometimes lead to NULL dereference errors that go unnoticed like the one reported in MESOS-4449.

      We do have -Werror set to -Wall but this particular warning is not included in -Wall.

      This flag has been recently introduced in GCC 5.3.0+. However, clang 3.5+ have had this for some time now. For now, one possible option would be to selectively enable this for clang.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              anandmazumdar Anand Mazumdar
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: