Bug #12403
srn: variable may be used uninitialized
Added by Toomas Soome 10 months ago.
Updated 10 months ago.
Category:
driver - device drivers
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
- 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