Project

General

Profile

Actions

Bug #12421

open

devinfo: variable may be used uninitialized

Added by Toomas Soome about 1 year ago. Updated 12 months ago.

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

90%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Build errors with gcc 9:

    ../../common/io/devinfo.c: In function 'di_copytree':
    ../../common/io/devinfo.c:1771:9: error: 'off' may be used uninitialized in this function [-Werror=maybe-uninitialized]
     1771 |  return (off);
          |         ^
    ../../common/io/devinfo.c: In function 'di_path_getprop':
    ../../common/io/devinfo.c:2847:16: error: 'me' may be used uninitialized in this function [-Werror=maybe-uninitialized]
     2847 |  me->prop_next = 0;
          |  ~~~~~~~~~~~~~~^~~
    cc1: all warnings being treated as errors

Actions #1

Updated by Electric Monk 12 months ago

  • Gerrit CR set to 440
Actions

Also available in: Atom PDF