Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-17956

Clang warning in jarray

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.0.0
    • Fix Version/s: 6.4.2
    • Component/s: JLib
    • Labels:
      None

      Description

      /Users/rchapman/HPCC-Platform/system/jlib/jarray.hpp:106:9: warning: destructor called on non-final 'Statistic' that has virtual functions but non-virtual destructor [-Wdelete-non-virtual-dtor]
              member.~MEMBER();
              ^
      /Users/rchapman/HPCC-Platform/system/jlib/jarray.hpp:357:17: note: in instantiation of member function 'SimpleArrayMapper<Statistic, const Statistic &>::destruct' requested here
              MAPPER::destruct(head[pos]);
                      ^
      /Users/rchapman/HPCC-Platform/system/jlib/jarray.hpp:223:24: note: in instantiation of member function 'ArrayOf<Statistic, const Statistic &, SimpleArrayMapper<Statistic, const Statistic &> >::destruct' requested here
                       SELF::destruct(i);
                             ^
      /Users/rchapman/HPCC-Platform/system/jlib/jarray.hpp:130:39: note: in instantiation of member function 'ArrayOf<Statistic, const Statistic &, SimpleArrayMapper<Statistic, const Statistic &> >::kill' requested here
          ~ArrayOf<MEMBER,PARAM,MAPPER>() { kill(); }
                                            ^
      /Users/rchapman/HPCC-Platform/system/jlib/jarray.hpp:465:7: note: in instantiation of member function 'ArrayOf<Statistic, const Statistic &, SimpleArrayMapper<Statistic, const Statistic &> >::~ArrayOf' requested here
      class StructArrayOf : public ArrayOf<CLASS, const CLASS &> { };
            ^
      /Users/rchapman/HPCC-Platform/system/jlib/jarray.hpp:106:17: note: qualify call to silence this warning
              member.~MEMBER();
                      ^
                      Statistic::
      

        Attachments

          Activity

            People

            • Assignee:
              ghalliday Gavin Halliday
              Reporter:
              richardkchapman Richard Chapman
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: