Project

General

Profile

Bug #12403

srn: variable may be used uninitialized

Added by Toomas Soome 9 months ago. Updated 8 months ago.

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

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

Build error with gcc 9:

    ../../common/io/srn.c: In function 'srn_notify':
    ../../common/io/srn.c:559:9: error: 'count' may be used uninitialized in this function [-Werror=maybe-uninitialized]
      559 |    count--;
          |    ~~~~~^~
    cc1: all warnings being treated as errors

#1

Updated by Electric Monk 8 months ago

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

git commit c4c986b810b9fd93e8a611caf5ed0f346a84416c

commit  c4c986b810b9fd93e8a611caf5ed0f346a84416c
Author: Toomas Soome <tsoome@me.com>
Date:   2020-04-07T06:03:59.000Z

    12403 srn: variable may be used uninitialized
    Reviewed by: Rob Johnston <rob.johnston@joyent.com>
    Reviewed by: Yuri Pankov <ypankov@fastmail.com>
    Reviewed by: Randy Fishel <randyf@sibernet.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Also available in: Atom PDF