Project

General

Profile

Bug #12421

devinfo: variable may be used uninitialized

Added by Toomas Soome 4 months ago. Updated 16 days 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

History

#1

Updated by Electric Monk 16 days ago

  • Gerrit CR set to 440

Also available in: Atom PDF