#4500 closed defect (fixed)

rld-dwarf.cpp: Uninitialized scalar field

Reported by: Ryan Long Owned by: Ryan Long <ryan.long@…>
Priority: normal Milestone: 6.1
Component: tool Version: 6
Severity: normal Keywords:
Cc: Blocked By:
Blocking:

Description

CID 1503019: Uninitialized scalar field

677    function::function (file& debug, debug_info_entry& die)
678      : debug (debug),
679        machine_code_ (false),
680        external_ (false),
681        declaration_ (false),
682        inline_ (DW_INL_not_inlined),
683        entry_pc_ (0),
684        has_entry_pc_ (false),
685        pc_low_ (0),
686        pc_high_ (0),
687        ranges_ (debug),
688        call_line_ (0)
CID 1503019 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)14. uninit_member: Non-static class member prototyped_ is not initialized in this constructor nor in any functions that it calls.

Change History (2)

comment:1 Changed on 08/18/21 at 15:14:11 by Ryan Long

CID 1503021: Uninitialized scalar field

 817    function::function (const function& orig)
 818      : debug (orig.debug),
 819        machine_code_ (orig.machine_code_),
 820        external_ (orig.external_),
 821        declaration_ (orig.declaration_),
 822        inline_ (orig.inline_),
 823        entry_pc_ (orig.entry_pc_),
 824        has_entry_pc_ (orig.has_entry_pc_),
 825        pc_low_ (orig.pc_low_),
 826        pc_high_ (orig.pc_high_),
 827        ranges_ (orig.ranges_),
 828        name_ (orig.name_),
 829        linkage_name_ (orig.linkage_name_),
 830        call_file_ (orig.call_file_),
 831        call_line_ (orig.call_line_)
 832    {
    2. uninit_member: Non-static class member prototyped_ is not initialized in this constructor nor in any functions that it calls.
    CID 1503021 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)4. uninit_member: Non-static class member decl_line_ is not initialized in this constructor nor in any functions that it calls.
 833    }

comment:2 Changed on 09/01/21 at 15:31:07 by Ryan Long <ryan.long@…>

Owner: set to Ryan Long <ryan.long@…>
Resolution: fixed
Status: newclosed

In 2cf693a/rtems-tools:

rld-dwarf.cpp: Initialize member variables

Initialize member variables not listed.

CID 1503019: Uninitialized scalar field.

Closes #4500

Note: See TracTickets for help on using tickets.