Project

General

Profile

Actions

Bug #8717

closed

autofs: parameter/variable set but not used

Added by Toomas Soome almost 5 years ago. Updated almost 5 years ago.

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

100%

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

Description

Debug build issue from gcc 6:

    ns_files.c: In function 'call_read_execout':
    ns_files.c:684:37: error: parameter 'lp' set but not used [-Werror=unused-but-set-parameter]
     call_read_execout(char *key, char **lp, char *fname, char *line,
                                         ^~

    autod_nfs.c: In function 'read_default_nfs':
    autod_nfs.c:3985:16: error: variable 'lastread' set but not used [-Werror=unused-but-set-variable]
      static time_t lastread = 0;
                    ^~~~~~~~

    cc1: all warnings being treated as errors
Actions #1

Updated by Electric Monk almost 5 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 90 to 100

git commit 64ab3274db4bff1fa61f17076c4a40255cf17fb8

commit  64ab3274db4bff1fa61f17076c4a40255cf17fb8
Author: Toomas Soome <tsoome@me.com>
Date:   2017-10-17T20:35:16.000Z

    8717 autofs: parameter/variable set but not used
    Reviewed by: Robert Mustacchi <rm@joyent.com>
    Reviewed by: C Fraire <cfraire@me.com>
    Reviewed by: Igor Kozhukhov <igor@dilos.org>
    Approved by: Dan McDonald <danmcd@joyent.com>

Actions

Also available in: Atom PDF