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

Compiler warning in stout subcommand tests

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.24.0
    • stout
    • None
    • clang 3.7 ubuntu 15.04

    Description

      ../../../../3rdparty/libprocess/3rdparty/stout/tests/subcommand_tests.cpp:146:3: warning: 'delete' applied to a pointer that was allocated with 'new[]'; did you mean 'delete[]'?
      [-Wmismatched-new-delete]
      delete argv;
      ^
      []
      ../../../../3rdparty/libprocess/3rdparty/stout/tests/subcommand_tests.cpp:119:17: note: allocated with 'new[]' here
      char** argv = new char*[argc];
      ^

      Attachments

        Activity

          People

            bmahler Benjamin Mahler
            pbrett Paul Brett
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: