Project

General

Profile

Bug #12421

devinfo: variable may be used uninitialized

Added by Toomas Soome 9 days ago.

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

90%

Estimated time:
Difficulty:
Medium
Tags:

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

Also available in: Atom PDF