Project

General

Profile

Bug #12424

openeepr: 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:
Bite-size
Tags:

Description

Build errors with gcc 9:

    ../../common/io/openprom.c -mcmodel=kernel
    ../../common/io/openprom.c: In function 'opromioctl_cb':
    ../../common/io/openprom.c:609:20: error: 'node_id' may be used uninitialized in this function [-Werror=maybe-uninitialized]
      609 |   valbuf = (char *)prom_nextprop(node_id, opp->oprom_array,
          |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      610 |       propname);
          |       ~~~~~~~~~
    cc1: all warnings being treated as errors

Also available in: Atom PDF