Project

General

Profile

Bug #12415

ecpp: variable may be used uninitialized

Added by Toomas Soome 10 months ago. Updated 10 months ago.

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

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

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

Also available in: Atom PDF