Project

General

Profile

Actions

Bug #8818

closed

i86xpv/generic_cpu: variable set but not used

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

Status:
Closed
Priority:
Normal
Assignee:
Category:
driver - device drivers
Start date:
2017-11-19
Due date:
% Done:

100%

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

Description

Debug build error from gcc 6:

    ../../i86xpv/cpu/generic_cpu/gcpu_mca_xpv.c: In function 'gcpu_xpv_proxy_logout':
    ../../i86xpv/cpu/generic_cpu/gcpu_mca_xpv.c:82:6: error: variable 'nbanks' set but not used [-Werror=unused-but-set-variable]
      int nbanks, j;
          ^~~~~~

    ../../i86xpv/cpu/generic_cpu/gcpu_mca_xpv.c: In function 'gcpu_xpv_proxy_logout':
    ../../i86xpv/cpu/generic_cpu/gcpu_mca_xpv.c:79:15: error: variable 'gcpu' set but not used [-Werror=unused-but-set-variable]
      gcpu_data_t *gcpu;
                   ^~~~
    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 8c69cc8fbe729fa7b091e901c4b50508ccc6bb33

commit  8c69cc8fbe729fa7b091e901c4b50508ccc6bb33
Author: Toomas Soome <tsoome@me.com>
Date:   2017-11-23T11:32:29.000Z

    8818 i86xpv/generic_cpu: variable set but not used
    Reviewed by: Yuri Pankov <yuripv@gmx.com>
    Reviewed by: Gary Mills <gary_mills@fastmail.fm>
    Approved by: Hans Rosenfeld <hans.rosenfeld@joyent.com>

Actions

Also available in: Atom PDF