Project

General

Profile

Actions

Bug #13760

open

luxadm: variable may be used uninitialized

Added by Toomas Soome 10 days ago. Updated 10 days ago.

Status:
In Progress
Priority:
Normal
Assignee:
Category:
cmd - userland programs
Start date:
Due date:
% Done:

90%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Build errors:

    fchba.c: In function 'fchba_display_link_status':
    fchba.c:1102: error: 'physical' may be used uninitialized in this function [-Wuninitialized]
    fchba.c:1102: error: 'comp_phys' may be used uninitialized in this function [-Wuninitialized]
    fchba.c: In function 'fchba_dump_map':
    fchba.c:892: error: 'physical' may be used uninitialized in this function [-Wuninitialized]
    fchba.c:892: error: 'comp_phys' may be used uninitialized in this function [-Wuninitialized]

    adm.c: In function 'main':
    adm.c:634:19: error: 'option_t_input' may be used uninitialized in this function [-Werror=maybe-uninitialized]
      634 |       exit_code = fchba_display_config(&argv[path_index],
          |                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      635 |        option_t_input, argc - path_index);
          |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    cc1: all warnings being treated as errors

    fchba.c: In function 'fchba_hotplug_e':
    fchba.c:2078:5: error: 'exit_code' may be used uninitialized in this function [-Werror=maybe-uninitialized]
      if (exit_code != 0) {
         ^
    cc1: all warnings being treated as errors
    *** Error code 1
    dmake: Fatal error: Command failed for target `fchba.o'
    Current working directory /code/illumos-gate/usr/src/cmd/luxadm

Clean them all...

Actions #1

Updated by Electric Monk 10 days ago

  • Gerrit CR set to 1449
Actions

Also available in: Atom PDF