This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/81669] New: trunk/gcc/fibonacci_heap.h:58: possible missing initialisation ?


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81669

            Bug ID: 81669
           Summary: trunk/gcc/fibonacci_heap.h:58: possible missing
                    initialisation ?
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

trunk/gcc/fibonacci_heap.h:58]: (warning) Member variable
'fibonacci_node::m_data' is not initialized in the constructor.

Source code is

  fibonacci_node (): m_parent (NULL), m_child (NULL), m_left (this),
    m_right (this), m_degree (0), m_mark (0)
  {
  }

Probably harmless, but might be safer to make sure m_data is
set to something sensible.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]