Project

General

Profile

Actions

Bug #13761

closed

logadm: variable may be used uninitialized

Added by Toomas Soome about 1 year ago. Updated about 1 year ago.

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

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Build errors:

    cc1: warnings being treated as errors
    main.c: In function 'main':
    main.c:165: error: 'clopts' may be used uninitialized in this function [-Wuninitialized]

    cc1: warnings being treated as errors
    conf.c: In function 'conf_scan':
    conf.c:198: error: 'cp' may be used uninitialized in this function [-Wuninitialized]

    main.c: In function 'docopytruncate':
    main.c:1241:2: error: 'len' may be used uninitialized in this function [-Werror=maybe-uninitialized]
      } while (len >= 0);
      ^
    cc1: all warnings being treated as errors
    *** Error code 1
    dmake: Fatal error: Command failed for target `main.o'
    Current working directory /code/illumos-gate/usr/src/cmd/logadm

Clean them all up.

Testing done. build/install/boot.


Related issues

Related to illumos gate - Bug #13789: logadm: conf_scan() depens on non-zero value from stackClosedToomas Soome

Actions
Actions

Also available in: Atom PDF