Project

General

Profile

Actions

Bug #8789

closed

usbgem: variable set but unused

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-07
Due date:
% Done:

100%

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

Description

Debug build errors from gcc 6:

    ../../common/io/usbgem/usbgem.c:925:6: error: variable 'ret' set but not used [-Werror=unused-but-set-variable]
      int ret;
          ^~~
    ../../common/io/usbgem/usbgem.c: In function 'usbgem_mac_ioctl':
    ../../common/io/usbgem/usbgem.c:3878:7: error: variable 'cmd' set but not used [-Werror=unused-but-set-variable]
      int  cmd;
           ^~~
    ../../common/io/usbgem/usbgem.c: In function 'usbgem_m_getstat':
    ../../common/io/usbgem/usbgem.c:4206:6: error: variable 'ret' set but not used [-Werror=unused-but-set-variable]
      int ret;
          ^~~
    ../../common/io/usbgem/usbgem.c: In function 'usbgem_m_tx':
    ../../common/io/usbgem/usbgem.c:4568:11: error: variable 'flags' set but not used [-Werror=unused-but-set-variable]
      uint32_t flags;
               ^~~~~

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 720b16875295d57e0e6a4e0ec32db4d47412f896

commit  720b16875295d57e0e6a4e0ec32db4d47412f896
Author: Toomas Soome <tsoome@me.com>
Date:   2017-11-10T15:49:04.000Z

    8789 usbgem: variable set but unused
    Reviewed by: Andrew Stormont <andyjstormont@gmail.com>
    Reviewed by: Robert Mustacchi <rm@joyent.com>
    Reviewed by: Yuri Pankov <yuripv@gmx.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Actions

Also available in: Atom PDF