Project

General

Profile

Actions

Bug #12415

closed

ecpp: variable may be used uninitialized

Added by Toomas Soome over 3 years ago. Updated over 3 years ago.

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

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
External Bug:

Description

Build errors with gcc 9:

    ../../common/io/ecpp.c: In function 'ecpp_isr':
    ../../common/io/ecpp.c:3226:2: error: 'dsr' may be used uninitialized in this function [-Werror=maybe-uninitialized]
     3226 |  ecpp_error(pp->dip,
          |  ^~~~~~~~~~~~~~~~~~~
     3227 |      "isr:unknown: dcsr=%x ecr=%x dsr=%x dcr=%x\nmode=%x phase=%x\n",
          |      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     3228 |      dcsr, ECR_READ(pp), dsr, DCR_READ(pp),
          |      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     3229 |      pp->current_mode, pp->current_phase);
          |      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ../../common/io/ecpp.c:3226:2: error: 'dcsr' may be used uninitialized in this function [-Werror=maybe-uninitialized]
    cc1: all warnings being treated as errors

Actions

Also available in: Atom PDF