Project

General

Profile

Actions

Bug #13808

open

sharemgr: variable may be used uninitialized

Added by Toomas Soome over 2 years ago. Updated over 2 years ago.

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

90%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
External Bug:

Description

Build errors with gcc compilers:

    cc1: warnings being treated as errors
    ../commands.c: In function 'chk_opt':
    ../commands.c:719: error: 'ret' may be used uninitialized in this function [-Wuninitialized]
    ../commands.c: In function 'sa_removeshare':
    ../commands.c:3011: error: 'group' may be used uninitialized in this function [-Wuninitialized]
    ../commands.c:3017: error: 'auth' may be used uninitialized in this function [-Wuninitialized]
    ../commands.c: In function 'sa_set_share':
    ../commands.c:3278: error: 'newrsrc' may be used uninitialized in this function [-Wuninitialized]
    ../commands.c: In function 'sa_show':
    ../commands.c:2301: error: 'doc' may be used uninitialized in this function [-Wuninitialized]
    *** Error code 1

    ../commands.c: In function 'sa_set_share':
    ../commands.c:3502:18: error: 'auth' may be used uninitialized in this function
    [-Werror=maybe-uninitialized]
        if (dryrun && !auth && verbose) {
                      ^~~~~
    cc1: all warnings being treated as errors

Actions #1

Updated by Electric Monk over 2 years ago

  • Gerrit CR set to 1493
Actions

Also available in: Atom PDF