Project

General

Profile

Actions

Bug #8816

closed

mr_sas: 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:

    ../../common/io/mr_sas/mr_sas.c: In function 'build_cmd':
    ../../common/io/mr_sas/mr_sas.c:5054:11: error: variable 'context' set but not used [-Werror=unused-but-set-variable]
      uint32_t context;
               ^~~~~~~
    ../../common/io/mr_sas/mr_sas.c: In function 'disable_intr_ppc':
    ../../common/io/mr_sas/mr_sas.c:6841:11: error: variable 'mask' set but not used [-Werror=unused-but-set-variable]
      uint32_t mask;
               ^~~~
    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 f924f33d7af04fdea77591a059dd9c734448b76b

commit  f924f33d7af04fdea77591a059dd9c734448b76b
Author: Toomas Soome <tsoome@me.com>
Date:   2017-11-23T11:24:19.000Z

    8816 mr_sas: variable set but not used
    Reviewed by: Yuri Pankov <yuripv@gmx.com>
    Reviewed by: Andrew Stormont <andyjstormont@gmail.com>
    Reviewed by: Gary Mills <gary_mills@fastmail.fm>
    Approved by: Hans Rosenfeld <hans.rosenfeld@joyent.com>

Actions

Also available in: Atom PDF