Project

General

Profile

Actions

Bug #12368

closed

asy: variable may be used uninitialized

Added by Toomas Soome about 2 years ago. Updated about 2 years ago.

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

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Build error with gcc 9:

    ../../common/io/asy.c: In function 'asy_reset_fifo':
    ../../common/io/asy.c:2009:3: error: 'lcr' may be used uninitialized in this function [-Werror=maybe-uninitialized]
     2009 |   ddi_put8(asy->asy_iohandle, asy->asy_ioaddr + LCR, lcr);
          |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    cc1: all warnings being treated as errors

Testing done: build/install/boot

Actions #1

Updated by Toomas Soome about 2 years ago

  • Description updated (diff)
Actions #2

Updated by Electric Monk about 2 years ago

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

git commit 278de290aa274ca244c25d81b2940211c15ab7e5

commit  278de290aa274ca244c25d81b2940211c15ab7e5
Author: Toomas Soome <tsoome@me.com>
Date:   2020-03-20T07:15:25.000Z

    12368 asy: variable may be used uninitialized
    Reviewed by: Andy Fiddaman <andy@omniosce.org>
    Reviewed by: Alexander Pyhalov <alp@rsu.ru>
    Approved by: Dan McDonald <danmcd@joyent.com>

Actions

Also available in: Atom PDF