Project

General

Profile

Actions

Bug #8696

closed

genunix: auditsys variable 'model' set but not used

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

Status:
Closed
Priority:
Normal
Assignee:
Category:
kernel
Start date:
2017-10-03
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

gcc6 build issue:

    ../../common/syscall/auditsys.c: In function 'getaudit':
    ../../common/syscall/auditsys.c:171:10: error: variable 'model' set but not 
used
     [-Werror=unused-but-set-variable]
      model_t model;
              ^~~~~
    ../../common/syscall/auditsys.c: In function 'getaudit_addr':
    ../../common/syscall/auditsys.c:220:10: error: variable 'model' set but not 
used
     [-Werror=unused-but-set-variable]
      model_t model;
              ^~~~~
    ../../common/syscall/auditsys.c: In function 'setaudit':
    ../../common/syscall/auditsys.c:274:10: error: variable 'model' set but not 
used
     [-Werror=unused-but-set-variable]
      model_t model;
              ^~~~~
    ../../common/syscall/auditsys.c: In function 'setaudit_addr':
    ../../common/syscall/auditsys.c:332:10: error: variable 'model' set but not 
used
     [-Werror=unused-but-set-variable]
      model_t model;
              ^~~~~
    ../../common/syscall/auditsys.c: In function 'getkaudit':
    ../../common/syscall/auditsys.c:555:10: error: variable 'model' set but not 
used
     [-Werror=unused-but-set-variable]
      model_t model;
              ^~~~~
    ../../common/syscall/auditsys.c: In function 'setkaudit':
    ../../common/syscall/auditsys.c:608:10: error: variable 'model' set but not 
used
     [-Werror=unused-but-set-variable]
      model_t model;
              ^~~~~
    ../../common/syscall/auditsys.c: In function 'setumask':
    ../../common/syscall/auditsys.c:879:10: error: variable 'model' set but not 
used
     [-Werror=unused-but-set-variable]
      model_t model;
              ^~~~~
    ../../common/syscall/auditsys.c: In function 'setsmask':
    ../../common/syscall/auditsys.c:962:10: error: variable 'model' set but not 
used
     [-Werror=unused-but-set-variable]
      model_t model;
              ^~~~~
    ../../common/syscall/auditsys.c: In function 'getpinfo':
    ../../common/syscall/auditsys.c:1155:10: error: variable 'model' set but not
 use
    d [-Werror=unused-but-set-variable]
      model_t model;
              ^~~~~
    ../../common/syscall/auditsys.c: In function 'getpinfo_addr':
    ../../common/syscall/auditsys.c:1227:10: error: variable 'model' set but not use
    d [-Werror=unused-but-set-variable]
      model_t model;
              ^~~~~
    ../../common/syscall/auditsys.c: In function 'setpmask':
    ../../common/syscall/auditsys.c:1304:10: error: variable 'model' set but not used [-Werror=unused-but-set-variable]
      model_t model;
              ^~~~~
    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 571b0a139da53a3aae3b5d2370166c572eb7655c

commit  571b0a139da53a3aae3b5d2370166c572eb7655c
Author: Toomas Soome <tsoome@me.com>
Date:   2017-10-11T22:32:57.000Z

    8696 genunix: auditsys variable 'model' set but not used
    Reviewed by: Yuri Pankov <yuripv@gmx.com>
    Reviewed by: Robert Mustacchi <rm@joyent.com>
    Approved by: Richard Lowe <richlowe@richlowe.net>

Actions

Also available in: Atom PDF