Project

General

Profile

Bug #4056

cleanup warnings in cmd/sgs/prof

Added by Igor Kozhukhov over 7 years ago. Updated over 7 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:

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'
#1

Updated by Igor Kozhukhov over 7 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/

Also available in: Atom PDF