Project

General

Profile

Actions

Bug #4056

open

cleanup warnings in cmd/sgs/prof

Added by Igor Kozhukhov over 10 years ago. Updated over 10 years ago.

Status:
In Progress
Priority:
Normal
Category:
-
Start date:
2013-08-18
Due date:
% Done:

90%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:
External Bug:

Description

../common/rdelf.c: In function 'fetch_symtab':
../common/rdelf.c:317:4: error: 'symdata_aux' may be used uninitialized in this function [-Werror=maybe-uninitialized]
../common/rdelf.c:271:17: error: 'nsyms_pri' may be used uninitialized in this function [-Werror=maybe-uninitialized]
cc1: all warnings being treated as errors
*** Error code 1
dmake: Fatal error: Command failed for target `rdelf.o'

Related issues

Related to illumos gate - Bug #15535: prof: remove profClosedToomas Soome

Actions
Actions #1

Updated by Igor Kozhukhov over 10 years ago

  • Status changed from New to In Progress
  • % Done changed from 80 to 90

they are real issues,
because we have uninitialized variable 'nsyms_pri' if we have 'case: SH_SUNW_LDYNSYM' at line 256.
'symdata_aux' have value at 284 and it is possible to have it uninitialized at 317

webrev:
http://cr.dilos.org/cr/il-4056/

Actions #2

Updated by Gergő Mihály Doma 11 months ago

Actions

Also available in: Atom PDF