Project

General

Profile

Actions

Bug #12420

closed

fd: variable may be used uninitialized

Added by Toomas Soome over 2 years ago. Updated over 2 years 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 errors with gcc 9:

    ../../common/io/fd.c: In function 'fdgetlabel':
    ../../common/io/fd.c:871:5: error: 'rval' may be used uninitialized in this function [-Werror=maybe-uninitialized]
      871 |  if (rval) {
          |     ^
    cc1: all warnings being treated as errors

Testing done: build/install/boot

Actions #1

Updated by Toomas Soome over 2 years ago

  • Description updated (diff)
Actions #2

Updated by Electric Monk over 2 years ago

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

git commit d1d0a29b5275e074d59d170cca23b45a6e5834d8

commit  d1d0a29b5275e074d59d170cca23b45a6e5834d8
Author: Toomas Soome <tsoome@me.com>
Date:   2020-03-23T16:20:13.000Z

    12420 fd: variable may be used uninitialized
    Reviewed by: Yuri Pankov <ypankov@fastmail.com>
    Reviewed by: Robert Mustacchi <rm@fingolfin.org>
    Approved by: Dan McDonald <danmcd@joyent.com>

Actions

Also available in: Atom PDF